Skip to content

Commit

Permalink
fix: missing menu entry in simplified interface
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jun 7, 2022
1 parent 411ce5e commit 5a07a70
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion inc/common.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,20 @@ public static function hookRedefineMenu($menus) {
}

if (plugin_formcreator_replaceHelpdesk() === false) {
return $menus;
$newMenu = [];
foreach ($menus as $menuKey => $menuItem) {
if ($menuKey != 'tickets') {
$newMenu[$menuKey] = $menuItem;
continue;
}
$newMenu['seek_assistance'] = [
'default' => Plugin::getWebDir('formcreator', false) . '/front/wizard.php',
'title' => __('Seek assistance', 'formcreator'),
'icon' => 'fa-fw ti ti-headset',
];
$newMenu[$menuKey] = $menuItem;
}
return $newMenu;
}

$newMenu = [];
Expand Down

0 comments on commit 5a07a70

Please sign in to comment.