Skip to content

Commit

Permalink
fix: handle undefined setting for service catalog homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Dec 15, 2022
1 parent 95103fe commit 411ae35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 411ae35

Please sign in to comment.