[5.3] Restored Article Version Now Properly Checked Out to Current User
Pull Request for Issue #45586 .
Summary of Changes
This pull request addresses an issue where restoring a previous article version in Joomla causes the article to be locked (checked_out) to the original author of that version, rather than the current user performing the restore.
Testing Instructions
- Create two admin accounts.
- Login as USER1, create and save an article, then make a few edits and save multiple times to create version history (on the last one make sure to not save & close, just go save & go back to the dashboard and logout)
- Log in as USER2 and open the same article.
- Restore the previous version that wasn't set to save & close.
- It should now show a
Save & Closebutton for USER2 because the checked_out value is set to the USER2 id instead of retaining the USER1 value.
Actual result BEFORE applying this Pull Request
If a previous verison was restored that was had USER1's id stored as the checked_out value, it would only show a Save to Menu or Save as Copy button.
Expected result AFTER applying this Pull Request
Restored article is checked out the actual user restoring the article, so proper buttons show up.
Link to documentations
Please select:
-
[ ] Documentation link for docs.joomla.org:
-
[x] No documentation changes for docs.joomla.org needed
-
[ ] Pull Request link for manual.joomla.org:
-
[x] No documentation changes for manual.joomla.org needed