User tests: Successful: Unsuccessful:
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.
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.
Status | New | ⇒ | Pending |
Labels |
Added:
?
?
|
Milestone |
Added: |
Labels |
Added:
?
|
Labels | |||
Easy | No | ⇒ | Yes |
Category | ⇒ | Administration UI/UX |
I have tested this item successfully on 6c38d23
Status | Pending | ⇒ | Ready to Commit |
Labels |
Labels |
Added:
?
|
Labels |
Removed:
?
|
Labels |
Added:
?
|
This PR has received new commits.
CC: @coolman01, @designbengel
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.
And use JHtml::_('script', 'system/js/permissions.min.js', false, true, false, false, true);
instead of
// Add Javascript for permission change
$document = JFactory::getDocument();
$document->addScript('../media/system/js/permissions.js');
Labels |
Removed:
?
|
Labels |
Added:
?
|
The proposed changes were implemented and can be tested now
This PR has received new commits.
CC: @coolman01, @designbengel
Status | Ready to Commit | ⇒ | Pending |
Labels |
I have tested this item successfully on b621ac6
Works great. Great work here.
I have just send a very mirror CS PR at: tflm84#2 to address a space that is to much in a doc block
Labels |
Removed:
?
|
I have tested this item successfully on b621ac6
Also works fine with the change:
JHtml::_('script', 'media/system/js/permissions.min.js', false, false, false, false, true);
Status | Pending | ⇒ | Ready to Commit |
Labels |
RTC on testing now. Thanks
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Pending |
Labels |
Back to pending as we need one more minor code change.
Labels |
Removed:
?
|
This PR has received new commits.
CC: @coolman01, @designbengel, @dgt41, @zero-24
Code looks good. Thanks. Can we have one more round of tests please? Thanks.
I have tested this item successfully on 8a576c7
Works as expected!
I have tested this item successfully on 8a576c7
I have tested this succcessfull on my test site with some different combinations and it works for me
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Labels |
RTC Thanks for you work and the tests
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-11-02 20:47:40 |
Closed_By | ⇒ | roland-d |
Labels |
Removed:
?
|
I have tested this item successfully on 6c38d23
It works as described.
However, if for some reason the user does not want to save all the changes made in e.g. the module, and clicks the "close" button, then the permission changes are already saved. Maybe there could be a message attached to the close button to say "permission chnages saved"
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8132.