FIX Page limit GET / POST

This commit is contained in:
atm-lena 2022-06-16 14:57:32 +02:00
parent 18ea7b08f8
commit 99efd244d6
2 changed files with 9 additions and 9 deletions

View File

@ -94,6 +94,14 @@ include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be includ
//if ($user->socid > 0) $socid = $user->socid;
//$result = restrictedArea($user, 'mymodule', $id);
//Parameters Page
$param = '&id='.$object->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$param .= '&limit='.urlencode($limit);
}
$paramwithsearch = $param;
if (empty($conf->global->MAIN_USE_ADVANCED_PERMS)) {
$permissiontoadd = $user->rights->stock->creer;
$permissiontodelete = $user->rights->stock->supprimer;
@ -104,12 +112,6 @@ if (empty($conf->global->MAIN_USE_ADVANCED_PERMS)) {
$now = dol_now();
//Parameters Page
$param = '&id='.$object->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$param .= '&limit='.urlencode($limit);
}
$paramwithsearch = $param;
/*
@ -547,8 +549,7 @@ if ($object->id > 0) {
print dol_get_fiche_end();
print '<form id="formrecord" name="formrecord" method="POST" action="'.$_SERVER["PHP_SELF"].'?page='.$page.$paramwithsearch.'">';
print '<form id="formrecord" name="formrecord" method="POST" action="'.$_SERVER["PHP_SELF"].'?page='.$page.'&id='.$object->id.'">';
print '<input type="hidden" name="token" value="'.newToken().'">';
print '<input type="hidden" name="action" value="updateinventorylines">';
print '<input type="hidden" name="id" value="'.$object->id.'">';

View File

@ -683,7 +683,6 @@ if ($search_dateclose_end) {
$param .= '&search_date_endmonth='.urlencode($tmparray['mon']);
$param .= '&search_date_endyear='.urlencode($tmparray['year']);
}
// List of mass actions available
$arrayofmassactions = array(
//'presend'=>img_picto('', 'email', 'class="pictofixedwidth"').$langs->trans("SendByMail"),