Skip to content

Commit

Permalink
Merge pull request #32216 from Easya-Solutions/18.0_fix_ticket_list
Browse files Browse the repository at this point in the history
Ticket : don't autofill search field for ticket type on multiselect
  • Loading branch information
eldy authored Dec 5, 2024
2 parents c547362 + f5c715c commit 084d99f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/class/html.formticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ public function selectTypesTickets($selected = '', $htmlname = 'tickettype', $fi
$ticketstat->loadCacheTypesTickets();

print '<select id="select'.$htmlname.'" class="flat minwidth100'.($morecss ? ' '.$morecss : '').'" name="'.$htmlname.($multiselect?'[]':'').'"'.($multiselect?' multiple':'').'>';
if ($empty) {
if ($empty && !$multiselect) {
print '<option value="">&nbsp;</option>';
}

Expand Down Expand Up @@ -753,7 +753,7 @@ public function selectTypesTickets($selected = '', $htmlname = 'tickettype', $fi
print ' selected="selected"';
} elseif (in_array($id, $selected)) {
print ' selected="selected"';
} elseif ($arraytypes['use_default'] == "1" && empty($selected)) {
} elseif ($arraytypes['use_default'] == "1" && empty($selected) && !$multiselect) {
print ' selected="selected"';
}

Expand Down

0 comments on commit 084d99f

Please sign in to comment.