Skip to content

Commit 4377baf

Browse files
committed
fix(glpiselectfield): restrict to items associatable to tickets
restriction on per item basis, like software Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 7db999d commit 4377baf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

inc/fields/dropdownfield.class.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ public function displayField($canEdit = true) {
222222
];
223223
$groups = implode("', '", $groups);
224224
}
225+
// Check if helpdesk availability is fine tunable on a per item basis
226+
if ($DB->fieldExists($itemtype::getTable(), 'is_helpdesk_visible')) {
227+
$dparams_cond_crit[] = [
228+
'is_helpdesk_visible' => '1',
229+
];
230+
}
225231
}
226232
}
227233

0 commit comments

Comments
 (0)