User tests: Successful: Unsuccessful:
Pull Request for Issue #14253
Line 605 changed from isset to !empty for $filters['access']
Set the global setting of default access level to any other View Level than the Public and click to create a new menu item. The new menu item won't use your default View Level as per the global setting. Likely it will still use the Public level.
Creating new menu item should have access level preselected as defined in Global config.
Creating new menu item won't have that access level.
Joomla 3.6.5
The problem is inside the loadFormData() method -(administrator/com_menus/models/item.php) ~ line #596
$data['access'] = (isset($filters['access']) ? $filters['access'] : JFactory::getConfig()->get('access'));
It currently checks if $filters['access'] is set - which it seems it is no matter what, so it always return true.
!empty should be used instead, to check if the access element has a value.
There is an issue with new menu items that won't obey to the global setting of default access level.
Currently they will use a default access level, if there is a filter previously in the menu items list, but otherwise they will default to the first menu item by viewlevel id.
A small update:
What I haven't test though, is if the checking of the other $filters that this method deals, would also need to be against a non empty value, instead of the var being set. But as far I recall, the case with the others filters is that there is not a global default that they need to retrieve anyways.
none
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_menus |
I have tested this item
I have tested this item
RTC as there are 2 successfully Tests?
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-06 12:05:16 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
?
|
@joomlabeat i have just copied the info form the issue into this here. Thanks.