From 411ae3597d1ec54a51aaa50b65eba646e5112dec Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 15 Dec 2022 15:30:35 +0100 Subject: [PATCH] fix: handle undefined setting for service catalog homepage --- setup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.php b/setup.php index faf8b5b8f..c35e9df64 100644 --- a/setup.php +++ b/setup.php @@ -426,6 +426,7 @@ function plugin_formcreator_redirect() { // Interface and active entity are set in session if (plugin_formcreator_replaceHelpdesk()) { switch (PluginFormcreatorEntityConfig::getUsedConfig('service_catalog_home', $_SESSION['glpiactive_entity'])) { + default: case PluginFormcreatorEntityConfig::CONFIG_SERVICE_CATALOG_HOME_SEARCH: $homepage = '/front/wizard.php'; break;