From 0b17b9405b71737c2021ac85b0287bbc20ca815c Mon Sep 17 00:00:00 2001 From: Irvine Fleith Date: Wed, 15 Jan 2025 16:20:10 +0100 Subject: [PATCH] Retours de PR --- htdocs/contrat/services_list.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/contrat/services_list.php b/htdocs/contrat/services_list.php index 5e640133e1362..577ec2d2561e8 100644 --- a/htdocs/contrat/services_list.php +++ b/htdocs/contrat/services_list.php @@ -97,7 +97,7 @@ $search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_'); /** BACKPORT PR 32662 */ -$sall = GETPOST('search_all', 'alphanohtml') ? GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml'); +$search_all = GETPOST('search_all', 'alphanohtml'); $fieldstosearchall = [ 'p.label' => 'Product', @@ -370,8 +370,8 @@ } /** BACKPORT PR 32662 */ -if ($sall) { - $sql .= natural_search(array_keys($fieldstosearchall), $sall); +if ($search_all) { + $sql .= natural_search(array_keys($fieldstosearchall), $search_all); } /** END BACKPORT PR 32662 */ @@ -423,8 +423,8 @@ } /** BACKPORT PR 32662 */ -if ($sall != '') { - $param .= '&sall='.urlencode($sall); +if ($search_all != '') { + $param .= '&sall='.urlencode($search_all); } /** END BACKPORT PR 32662 */ @@ -511,11 +511,11 @@ print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'contract', 0, '', '', $limit); -if (!empty($sall)) { +if (!empty($search_all)) { foreach ($fieldstosearchall as $key => $val) { $fieldstosearchall[$key] = $langs->trans($val); } - print '
'.$langs->trans("FilterOnInto", $sall).join(', ', $fieldstosearchall).'
'; + print '
'.$langs->trans("FilterOnInto", $search_all).join(', ', $fieldstosearchall).'
'; } $morefilter = '';