PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar travisrisner
travisrisner
11 Jun 2025

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:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar travisrisner travisrisner - change - 11 Jun 2025
Status New Pending
avatar travisrisner travisrisner - open - 11 Jun 2025
avatar joomla-cms-bot joomla-cms-bot - change - 11 Jun 2025
Category Libraries
avatar travisrisner travisrisner - change - 11 Jun 2025
Labels Added: PR-5.3-dev

Add a Comment

Login with GitHub to post a comment