Skip to content

Commit a41bbe4

Browse files
committed
fix(wizard): inconsistency between helpesk and service catalog
helpdesk does not show all categories, but shows forms inside
1 parent 9c55323 commit a41bbe4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ajax/homepage_wizard.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
}
3939

4040
if ($_REQUEST['wizard'] == 'categories') {
41-
plugin_formcreator_showWizardCategories(plugin_formcreator_replaceHelpdesk());
41+
plugin_formcreator_showWizardCategories();
4242
} else if ($_REQUEST['wizard'] == 'forms') {
4343
if (isset($_REQUEST['categoriesId'])) {
4444
$categoriesId = intval($_REQUEST['categoriesId']);
@@ -54,8 +54,8 @@
5454
: true;
5555
}
5656

57-
function plugin_formcreator_showWizardCategories($helpdesk = true) {
58-
$tree = PluginFormcreatorCategory::getCategoryTree(0, $helpdesk);
57+
function plugin_formcreator_showWizardCategories() {
58+
$tree = PluginFormcreatorCategory::getCategoryTree(0, false);
5959
echo json_encode($tree, JSON_UNESCAPED_SLASHES);
6060
}
6161

0 commit comments

Comments
 (0)