From 1cb5f3463187523720624464c4aac7361fee0c5c Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 16 Sep 2021 16:33:18 +0200 Subject: [PATCH] fix(glpiselectfield, dropdownfield): filter by helpdesk visibility only in simplified interface Signed-off-by: Thierry Bugier --- inc/field/dropdownfield.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/field/dropdownfield.class.php b/inc/field/dropdownfield.class.php index 0bb133c3e..e3d619483 100644 --- a/inc/field/dropdownfield.class.php +++ b/inc/field/dropdownfield.class.php @@ -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', ];