From e85e04bd17f300ede2aa23245c5ea487cc0d77cb Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 2 Dec 2021 10:05:36 +0100 Subject: [PATCH] fix(formlist): remove useless links in menu helpdesk header does not shows extra buttons Signed-off-by: Thierry Bugier --- inc/formlist.class.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/inc/formlist.class.php b/inc/formlist.class.php index d85a9f636..7d2f666e3 100644 --- a/inc/formlist.class.php +++ b/inc/formlist.class.php @@ -46,21 +46,11 @@ public static function getTypeName($nb = 0) { return _n('Form', 'Forms', $nb, 'formcreator'); } - static function getMenuContent() { + public static function getMenuContent() { $menu = parent::getMenuContent(); $menu['title'] = static::getTypeName(2); - $menu['page'] = '/' . Plugin::getWebDir('formcreator', false) . '/front/formlist.php'; + $menu['page'] = PluginFormcreatorFormList::getSearchURL(false); $menu['icon'] = 'fas fa-edit'; - $image = ''; - - $menu['links']['search'] = PluginFormcreatorFormList::getSearchURL(false); - if (PluginFormcreatorForm::canCreate()) { - $menu['links']['add'] = PluginFormcreatorForm::getFormURL(false); - } - $menu['links']['config'] = PluginFormcreatorForm::getSearchURL(false); - $menu['links'][$image] = PluginFormcreatorFormAnswer::getSearchURL(false); return $menu; }