Skip to content

Commit

Permalink
fix(glpiselectfield): restrict to items associatable to tickets
Browse files Browse the repository at this point in the history
restriction on per item basis, like software

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Feb 5, 2020
1 parent 7db999d commit 4377baf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inc/fields/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ public function displayField($canEdit = true) {
];
$groups = implode("', '", $groups);
}
// Check if helpdesk availability is fine tunable on a per item basis
if ($DB->fieldExists($itemtype::getTable(), 'is_helpdesk_visible')) {
$dparams_cond_crit[] = [
'is_helpdesk_visible' => '1',
];
}
}
}

Expand Down

0 comments on commit 4377baf

Please sign in to comment.