From c2fa979ea110f4b1e931eb97d45de33cedc458e9 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 19 Jan 2021 14:41:00 +0100 Subject: [PATCH] fix: path detection to load JS Signed-off-by: Thierry Bugier --- setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.php b/setup.php index bdda1238d..dfb1cd462 100644 --- a/setup.php +++ b/setup.php @@ -293,7 +293,7 @@ function plugin_init_formcreator() { } // Load JS and CSS files if we are on a page which need them - if (strpos($_SERVER['REQUEST_URI'], 'plugins/formcreator') !== false + if (strpos($_SERVER['REQUEST_URI'], 'formcreator') !== false || strpos($_SERVER['REQUEST_URI'], 'central.php') !== false || isset($_SESSION['glpiactiveprofile']) && Session::getCurrentInterface() == 'helpdesk') {