Skip to content

Commit

Permalink
Retours de PR
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-irvine committed Jan 15, 2025
1 parent db19e97 commit 0b17b94
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions htdocs/contrat/services_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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 */

Expand Down Expand Up @@ -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 */

Expand Down Expand Up @@ -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 '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $sall).join(', ', $fieldstosearchall).'</div>';
print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $search_all).join(', ', $fieldstosearchall).'</div>';
}

$morefilter = '';
Expand Down

0 comments on commit 0b17b94

Please sign in to comment.