This commit is contained in:
Laurent Destailleur 2023-04-06 13:29:24 +02:00
parent 4d504b3f98
commit 99b595a807

View File

@ -734,7 +734,7 @@ if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) {
$param .= '&contextpage='.urlencode($contextpage);
}
if ($limit > 0 && $limit != $conf->liste_limit) {
$param .= '&limit='.urlencode($limit);
$param .= '&limit='.((int) $limit);
}
if ($search_all != '') {
$param .= '&search_all='.urlencode($search_all);
@ -808,9 +808,6 @@ if ($search_date_end_end) {
if ($socid) {
$param .= '&socid='.urlencode($socid);
}
if (!empty($search_categ)) {
$param .= '&search_categ='.urlencode($search_categ);
}
if ($search_ref != '') {
$param .= '&search_ref='.urlencode($search_ref);
}
@ -973,7 +970,7 @@ $moreforfilter .= '</div>';
$moreforfilter .= '<div class="divsearchfield">';
$tmptitle = $langs->trans('ProjectsWithThisContact');
$moreforfilter .= img_picto($tmptitle, 'user', 'class="pictofixedwidth"').$form->selectcontacts(0, $search_project_contact ? $search_project_contact : '', 'search_project_contact', $tmptitle, '', '', 0, 'maxwidth250 widthcentpercentminusx');
$moreforfilter .= img_picto($tmptitle, 'contact', 'class="pictofixedwidth"').$form->selectcontacts(0, $search_project_contact ? $search_project_contact : '', 'search_project_contact', $tmptitle, '', '', 0, 'maxwidth250 widthcentpercentminusx');
$moreforfilter .= '</div>';
// If the user can view thirdparties other than his'