fix ticket list (#38573)

This commit is contained in:
Frédéric FRANCE 2026-06-02 15:53:51 +02:00 committed by GitHub
parent 8c9d668e42
commit 95a16f7a01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -904,7 +904,7 @@ foreach ($object->fields as $key => $val) {
$arrayofstatus['openall'] = array('id' => 'openall', 'labelhtml' => '<b>-- '.$langs->trans('OpenAll').'</b>', 'label' => '-- '.$langs->trans('OpenAll'));
foreach ($object->labelStatusShort as $key2 => $val2) {
if ($key2 == Ticket::STATUS_CLOSED) {
$arrayofstatus['closeall'] = array('id' => 'openall', 'labelhtml' => '<b>-- '.$langs->trans('ClosedAll').'</b>', 'label' => '-- '.$langs->trans('ClosedAll'));
$arrayofstatus['closeall'] = array('id' => 'closeall', 'labelhtml' => '<b>-- '.$langs->trans('ClosedAll').'</b>', 'label' => '-- '.$langs->trans('ClosedAll'));
}
$arrayofstatus[$key2] = array('id' => $key2, 'labelhtml' => $val2, 'label' => $val2);
}