Skip to content

Commit

Permalink
feat(dropdownfield): always show ticket id
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jan 16, 2023
1 parent cc4b673 commit 0190ada
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/field/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ public function buildParams($rand = null) {
if (isset($emptyItem->fields['otherserial'])) {
$dparams['displaywith'][] = 'otherserial';
}
if ($itemtype === Ticket::class && !array_search('id', $dparams['displaywith'])) {
$dparams['displaywith'][] = 'id';
}

return $dparams;
}
Expand Down

0 comments on commit 0190ada

Please sign in to comment.