joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[5.3] Restored Article Version Now Properly Checked Out to Current User

Open travisrisner opened this issue 6 months ago • 0 comments

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

  1. Create two admin accounts.
  2. 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)
  3. Log in as USER2 and open the same article.
  4. Restore the previous version that wasn't set to save & close.
  5. It should now show a Save & Close button 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

travisrisner avatar Jun 11 '25 21:06 travisrisner