? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
2 Jul 2019

If you have a user who does not have core.edit.state permissions for com_content.article then the icon displayed for "featured/unfeatured" is wrong and you cannot differentiate between "featured/unfeatured" .

The problem is that the style comes from the tbody-icon on the button and the code in the joomla.icons.action-button layout has two bugs.

The first bug is that disabled was in the class attribute - it should be its own attribute. This meant that the button was never disabled. Which is probably why the second bug was introduced - the entire if(!empty($disabled)) test is not required and because it is not wrapped in a button it never gets the tbody-icon class and looks wrong

Testing instructions

Create a new user at the manager level. In article options change the permissions for manager so that Edit State is disabled.

Login as that user and go to the list of articles.

Before PR

image

After PR

image

a81cf82 2 Jul 2019 avatar brianteeman cs
avatar brianteeman brianteeman - open - 2 Jul 2019
avatar brianteeman brianteeman - change - 2 Jul 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jul 2019
Category Layout
avatar brianteeman brianteeman - change - 2 Jul 2019
Labels Added: ?
avatar richard67 richard67 - test_item - 2 Jul 2019 - Tested successfully
avatar richard67
richard67 - comment - 2 Jul 2019

I have tested this item successfully on e2779df


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25400.

avatar Quy Quy - test_item - 2 Jul 2019 - Tested successfully
avatar Quy
Quy - comment - 2 Jul 2019

I have tested this item successfully on e2779df


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25400.

avatar Quy Quy - change - 2 Jul 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 2 Jul 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25400.

avatar wilsonge wilsonge - change - 3 Jul 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-07-03 15:46:37
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 3 Jul 2019
avatar wilsonge wilsonge - merge - 3 Jul 2019
avatar wilsonge
wilsonge - comment - 3 Jul 2019

Thanks!

avatar brianteeman
brianteeman - comment - 3 Jul 2019

Thanks

Add a Comment

Login with GitHub to post a comment