29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-07-02 18:13:43 +00:00

[4.0] Main menu add new shortcuts (#27788)

* [4.0] Main menu add new shortcuts

The admin menu module has options to show/hide the "add new" shortcuts on the menu. This option was not working. It is now

* Update administrator/modules/mod_menu/tmpl/default_submenu.php

Co-Authored-By: Quy <quy@fluxbb.org>

Co-authored-by: Quy <quy@fluxbb.org>
This commit is contained in:
Brian Teeman 2020-02-11 07:11:46 +00:00 committed by GitHub
parent 53eb4342f1
commit 70d27e6135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,7 +148,7 @@ else
echo '<span>' . Text::_($current->title) . '</span>' . $ajax;
}
if ($currentParams->get('menu-quicktask', false))
if ($currentParams->get('menu-quicktask', false) && $this->params->get('shownew', 1) === 1)
{
$params = $current->getParams();
$user = $this->application->getIdentity();