Skip to content

Commit

Permalink
fix(glpiselectfield, dropdownfield): filter by helpdesk visibility on…
Browse files Browse the repository at this point in the history
…ly in simplified interface

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Sep 16, 2021
1 parent 2eebe5c commit 1cb5f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/field/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public function buildParams($rand = null) {
];
}
// Check if helpdesk availability is fine tunable on a per item basis
if ($DB->fieldExists($itemtype::getTable(), 'is_helpdesk_visible')) {
if (Session::getCurrentInterface() == "helpdesk" && $DB->fieldExists($itemtype::getTable(), 'is_helpdesk_visible')) {
$dparams_cond_crit[] = [
'is_helpdesk_visible' => '1',
];
Expand Down

0 comments on commit 1cb5f34

Please sign in to comment.