Skip to content

Commit

Permalink
move control after filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-Ngr committed Nov 7, 2024
1 parent 191a1b3 commit f84e325
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion htdocs/ticket/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,12 @@
continue;
} elseif ($key == 'type_code') {
$newarrayoftypecodes = is_array($search[$key]) ? $search[$key] : (!empty($search[$key]) ? explode(',', $search[$key]) : array());
$newarrayoftypecodes = array_filter(
$newarrayoftypecodes,

Check failure on line 406 in htdocs/ticket/list.php

View workflow job for this annotation

GitHub Actions / pre-commit

Whitespace found at end of line
function ($var) {

Check failure on line 407 in htdocs/ticket/list.php

View workflow job for this annotation

GitHub Actions / pre-commit

Whitespace found at end of line
return !(empty($var) && $var !== '0');
}
);
if (count($newarrayoftypecodes)) {
$sql .= natural_search($key, join(',', $newarrayoftypecodes), 3);
}
Expand Down Expand Up @@ -836,7 +842,7 @@
print '</td>';
} elseif ($key == 'type_code') {
print '<td class="liste_titre'.($cssforfield ? ' '.$cssforfield : '').'">';
$formTicket->selectTypesTickets(dol_escape_htmltag(empty($search[$key]) ? '' : $search[$key]), 'search_'.$key.'', '', 2, 0, 1, 0, (!empty($val['css']) ? $val['css'] : 'maxwidth150'), 1);
$formTicket->selectTypesTickets(dol_escape_htmltag(empty($search[$key]) ? '' : $search[$key]), 'search_'.$key.'', '', 2, 1, 1, 0, (!empty($val['css']) ? $val['css'] : 'maxwidth150'), 1);
print '</td>';
} elseif ($key == 'category_code') {
print '<td class="liste_titre'.($cssforfield ? ' '.$cssforfield : '').'">';
Expand Down

0 comments on commit f84e325

Please sign in to comment.