FIX Missing restore_lastsearch_values

This commit is contained in:
Laurent Destailleur 2018-02-26 21:16:40 +01:00
parent 19ae24f693
commit 3c552cec15
16 changed files with 16 additions and 16 deletions

View File

@ -201,7 +201,7 @@ if (empty($reshook))
{ {
$result = $object->delete($user); $result = $object->delete($user);
if ($result > 0) { 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(); exit();
} else { } else {
$langs->load("errors"); $langs->load("errors");

View File

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

View File

@ -191,7 +191,7 @@ if (empty($reshook))
$result = $object->delete($user, 0, $idwarehouse); $result = $object->delete($user, 0, $idwarehouse);
if ($result > 0) { 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(); exit();
} else { } else {
setEventMessages($object->error, $object->errors, 'errors'); setEventMessages($object->error, $object->errors, 'errors');

View File

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

View File

@ -470,7 +470,7 @@ if (empty($reshook))
setEventMessages($object->error, $object->errors, 'errors'); 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; exit;
} }

View File

@ -850,7 +850,7 @@ if (empty($reshook))
$result=$object->delete($user); $result=$object->delete($user);
if ($result > 0) 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; exit;
} }
else else

View File

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

View File

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

View File

@ -165,7 +165,7 @@ if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->expeditio
{ {
$db->commit(); $db->commit();
if (! empty($backtopage)) header("Location: ".$backtopage); 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; exit;
} }
else else

View File

@ -117,7 +117,7 @@ if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->stock->su
if ($result > 0) if ($result > 0)
{ {
setEventMessages($langs->trans("RecordDeleted"), null, 'mesgs'); 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; exit;
} }
else else

View File

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

View File

@ -125,7 +125,7 @@ if ($action == 'confirm_delete' && $confirm == "yes" && $user->rights->projet->s
if ($object->delete($user) > 0) 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; exit;
} }
else else

View File

@ -796,7 +796,7 @@ if (empty($reshook))
if ($result > 0) 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; exit;
} }
else else

View File

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

View File

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

View File

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