Conversation
Fix some CS sync the language file and add the correct @SInCE tag
There was a problem hiding this comment.
I am sure it can be solved easily with jQuery, and you already use jQuery 😉
|
I have tested this item ✅ successfully on 6c38d23 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
|
I have tested this item ✅ successfully on 6c38d23 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
|
This PR has received new commits. CC: @coolman01, @designbengel This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
|
Thanks for your feedback, i put that javascript code in a seperated file in media/system/js/. Also i used the escaped version for the error messages. |
|
@tflm84 can you rename media/system/js/permissions.js to media/system/js/permissions.min.js and the media/system/js/permissions-uncompressed.js to media/system/js/permissions.js ? |
|
And use // Add Javascript for permission change
$document = JFactory::getDocument();
$document->addScript('../media/system/js/permissions.js'); |
|
I have tested this item ✅ successfully on b621ac6 I have just send a very mirror CS PR at: tflm84#2 to address a space that is to much in a doc block 😄 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
There was a problem hiding this comment.
I know I am a pain…
but this line needs to be
JHtml::_('script', '/media/system/permissions.min.js', false, true, false, false, true);
There was a problem hiding this comment.
Rather a pain than a problem :)
|
I have tested this item ✅ successfully on b621ac6 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
Just a very mirror ;) one space to much here
|
RTC on testing now. Thanks 😃 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
There was a problem hiding this comment.
You don't need to instantiate the database connection, it is available via $this->db. The database connector is already loaded in the parent class. Please update the code accordingly.
There was a problem hiding this comment.
i have changed this. hope it is fine so ;)
|
Back to pending as we need one more minor code change. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
There was a problem hiding this comment.
Uh no, not like this. Remove line 345 and 346. From line 351 and later replace $db with $this->db. Thanks.
|
This PR has received new commits. CC: @coolman01, @designbengel, @DGT41, @zero-24 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
|
Code looks good. Thanks. Can we have one more round of tests please? Thanks. |
|
I have tested this item ✅ successfully on 8a576c7 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
|
I have tested this item ✅ successfully on 8a576c7 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
|
I have tested this item ✅ successfully on 8a576c7 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
|
RTC Thanks for you work and the tests 👍 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132. |
|
This has broken "Inherited", in the sense that choosing inherited always calculates as "Denied" |

Introduction
This PR fixes a problem of saving permissions within the Global Configuration, Components, Articles, Modules, and anywhere else where permissions can be configured.
If too many permission changes are made, the request is too large, because all settings are transmitted in one big form.
If this form is too big, some data get lost and are not stored in the database. Even worse, there is no feedback, therefore the user can not recognise that anything went wrong.
Fix
This fix splits the form when the save button is clicked. All inputfields which contain permissions will be disabled and not send during the saving progress.
Now, the permissions will be stored immediately after changing a value via AJAX. This solution leads to smaller forms and consistent storage of the permissions.
If something goes wrong, an error message will be displayed.
How to test this patch
Worked as a group on that issue: @icampus, @d03ms