User tests: Successful: Unsuccessful:
Pull Request for Issue #45586 .
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.
Save & Close
button for USER2 because the checked_out value is set to the USER2 id instead of retaining the USER1 value.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.
Restored article is checked out the actual user restoring the article, so proper buttons show up.
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
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
PR-5.3-dev
|
Labels |
Added:
bug
|
Labels |
Added:
Updates Requested
|
I have tested this item ✅ successfully on 2463e9f
Adopting Testing Instructions sligthly
Tested with JBT, before applying this PR:
After applying the PR with graft Joomla_5.3.3-dev+pr.45597-Development-Full_Package.zip
Unfortunally found a new error, but this exists already before this PR, see #45782
I have tested this item ✅ successfully on 2463e9f
Hi, I have successfully tested this! Thanks Travis for figuring out the logic!
(and thanks to @muhme because I had the same 'Check-out failed with the following error: The user checking out does not match the user who checked out the item..' message and thought, darn I did something wrong).
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
RTC
Removed: Updates Requested |
@travisrisner Thank you for your contribution. As test preparation I updated the branch. The PR has deprecations, to be fixed. Could you please check failed PHPstan? It shows you which lines failed and gives hint for fixing.