Skip to content

Commit

Permalink
fix(wizard): inconsistency between helpesk and service catalog
Browse files Browse the repository at this point in the history
helpdesk does not show all categories, but shows forms inside
  • Loading branch information
btry committed Aug 5, 2019
1 parent 9c55323 commit a41bbe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ajax/homepage_wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}

if ($_REQUEST['wizard'] == 'categories') {
plugin_formcreator_showWizardCategories(plugin_formcreator_replaceHelpdesk());
plugin_formcreator_showWizardCategories();
} else if ($_REQUEST['wizard'] == 'forms') {
if (isset($_REQUEST['categoriesId'])) {
$categoriesId = intval($_REQUEST['categoriesId']);
Expand All @@ -54,8 +54,8 @@
: true;
}

function plugin_formcreator_showWizardCategories($helpdesk = true) {
$tree = PluginFormcreatorCategory::getCategoryTree(0, $helpdesk);
function plugin_formcreator_showWizardCategories() {
$tree = PluginFormcreatorCategory::getCategoryTree(0, false);
echo json_encode($tree, JSON_UNESCAPED_SLASHES);
}

Expand Down

0 comments on commit a41bbe4

Please sign in to comment.