FIX Missing restore_lastsearch_values

This commit is contained in:
Laurent Destailleur 2018-02-26 21:16:40 +01:00
parent fd1d900f7f
commit 0cc84ab92f
16 changed files with 16 additions and 16 deletions

View File

@ -198,7 +198,7 @@ if (empty($reshook))
{
$result = $object->delete($user);
if ($result > 0) {
header('Location: ' . DOL_URL_ROOT . '/comm/propal/list.php');
header('Location: ' . DOL_URL_ROOT . '/comm/propal/list.php?restore_lastsearch_values=1');
exit();
} else {
$langs->load("errors");

View File

@ -185,7 +185,7 @@ if (empty($reshook))
$result = $object->delete($user);
if ($result > 0)
{
header('Location: index.php');
header('Location: list.php?restore_lastsearch_values=1');
exit;
}
else

View File

@ -191,7 +191,7 @@ if (empty($reshook))
$result = $object->delete($user, 0, $idwarehouse);
if ($result > 0) {
header('Location: ' . DOL_URL_ROOT . '/compta/facture/list.php');
header('Location: ' . DOL_URL_ROOT . '/compta/facture/list.php?restore_lastsearch_values=1');
exit();
} else {
setEventMessages($object->error, $object->errors, 'errors');

View File

@ -819,7 +819,7 @@ if (empty($reshook))
$result=$object->delete($user);
if ($result >= 0)
{
header("Location: index.php");
header("Location: list.php?restore_lastsearch_values=1");
return;
}
else

View File

@ -470,7 +470,7 @@ if (empty($reshook))
setEventMessages($object->error, $object->errors, 'errors');
}
header('Location: '.DOL_URL_ROOT.'/fichinter/list.php?leftmenu=ficheinter');
header('Location: '.DOL_URL_ROOT.'/fichinter/list.php?leftmenu=ficheinter&restore_lastsearch_values=1');
exit;
}

View File

@ -850,7 +850,7 @@ if (empty($reshook))
$result=$object->delete($user);
if ($result > 0)
{
header("Location: ".DOL_URL_ROOT.'/fourn/commande/list.php');
header("Location: ".DOL_URL_ROOT.'/fourn/commande/list.php?restore_lastsearch_values=1');
exit;
}
else

View File

@ -224,7 +224,7 @@ if (empty($reshook))
$result=$object->delete($user);
if ($result > 0)
{
header('Location: list.php');
header('Location: list.php?restore_lastsearch_values=1');
exit;
}
else

View File

@ -299,7 +299,7 @@ if ($action == 'confirm_delete' && GETPOST('confirm') == 'yes' && $user->rights-
if (! $error)
{
$db->commit();
header('Location: list.php');
header('Location: list.php?restore_lastsearch_values=1');
exit;
}
else

View File

@ -165,7 +165,7 @@ if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->expeditio
{
$db->commit();
if (! empty($backtopage)) header("Location: ".$backtopage);
else header("Location: ".DOL_URL_ROOT.'/expedition/index.php');
else header("Location: ".DOL_URL_ROOT.'/expedition/list.php?restore_lastsearch_values=1');
exit;
}
else

View File

@ -117,7 +117,7 @@ if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->stock->su
if ($result > 0)
{
setEventMessages($langs->trans("RecordDeleted"), null, 'mesgs');
header("Location: ".DOL_URL_ROOT.'/product/stock/list.php');
header("Location: ".DOL_URL_ROOT.'/product/stock/list.php?resotre_lastsearch_values=1');
exit;
}
else

View File

@ -407,7 +407,7 @@ if (empty($reshook))
if ($result > 0)
{
setEventMessages($langs->trans("RecordDeleted"), null, 'mesgs');
header("Location: index.php");
header("Location: list.php?restore_lastsearch_values=1");
exit;
}
else

View File

@ -125,7 +125,7 @@ if ($action == 'confirm_delete' && $confirm == "yes" && $user->rights->projet->s
if ($object->delete($user) > 0)
{
header('Location: '.DOL_URL_ROOT.'/projet/tasks.php?id='.$projectstatic->id.($withproject?'&withproject=1':''));
header('Location: '.DOL_URL_ROOT.'/projet/tasks.php?restore_lastsearch_values=1&id='.$projectstatic->id.($withproject?'&withproject=1':''));
exit;
}
else

View File

@ -764,7 +764,7 @@ if (empty($reshook))
if ($result > 0)
{
header("Location: ".DOL_URL_ROOT."/societe/list.php?delsoc=".urlencode($object->name));
header("Location: ".DOL_URL_ROOT."/societe/list.php?restore_lastsearch_values=1&delsoc=".urlencode($object->name));
exit;
}
else

View File

@ -995,7 +995,7 @@ while ($i < min($num, $limit))
$savalias = $obj->name_alias;
if (! empty($arrayfields['s.name_alias']['checked'])) $companystatic->name_alias='';
print '<td class="tdoverflowmax200">';
print $companystatic->getNomUrl(1,'',100);
print $companystatic->getNomUrl(1, '', 100, 0, 1);
print "</td>\n";
$companystatic->name_alias = $savalias;
if (! $i) $totalarray['nbfield']++;

View File

@ -157,7 +157,7 @@ if (empty($reshook)) {
$langs->load("errors");
setEventMessages($langs->trans("ErrorUserCannotBeDelete"), null, 'errors');
} else {
header("Location: index.php");
header("Location: index.php?restore_lastsearch_values=1");
exit;
}
}

View File

@ -91,7 +91,7 @@ if (empty($reshook)) {
{
$object->fetch($id);
$object->delete();
header("Location: index.php");
header("Location: index.php?restore_lastsearch_values=1");
exit;
}
else