Skip to content

Commit

Permalink
Dolibarr#31950 [Ticket] fix: missing property definition
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Nov 16, 2024
1 parent 4929151 commit afbf304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/ticket/class/ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ public function fetch($id = 0, $ref = '', $track_id = '', $email_msgid = '')
$this->timing = $obj->timing;

$this->type_code = $obj->type_code;
$label_type = ($langs->trans("TicketTypeShort".$obj->type_code) != "TicketTypeShort".$obj->type_code ? $langs->trans("TicketTypeShort".$obj->type_code) : ($obj->type_label != '-' ? $obj->type_label : ''));
$label_type = ($langs->trans("TicketTypeShort".$obj->type_code) != "TicketTypeShort".$obj->type_code ? $langs->trans("TicketTypeShort".$obj->type_code) : (isset($obj->type_label) && $obj->type_label != '-' ? $obj->type_label : ''));
$this->type_label = $label_type;

$this->category_code = $obj->category_code;
Expand Down Expand Up @@ -945,7 +945,7 @@ public function fetchAll($user, $sortorder = 'ASC', $sortfield = 't.datec', $lim
$line->progress = $obj->progress;
$line->timing = $obj->timing;

$label_type = ($langs->trans("TicketTypeShort".$obj->type_code) != "TicketTypeShort".$obj->type_code ? $langs->trans("TicketTypeShort".$obj->type_code) : ($obj->type_label != '-' ? $obj->type_label : ''));
$label_type = ($langs->trans("TicketTypeShort".$obj->type_code) != "TicketTypeShort".$obj->type_code ? $langs->trans("TicketTypeShort".$obj->type_code) : (isset($obj->type_label) && $obj->type_label != '-' ? $obj->type_label : ''));
$line->type_label = $label_type;

$this->category_code = $obj->category_code;
Expand Down

0 comments on commit afbf304

Please sign in to comment.