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 |
||
| Labels |
Added:
Updates Requested
|
||
@rdeutz what updates are needed?
@brianteeman That's a naughty behaviour of the issue tracker when not being up to date with the labels. It adds them back as soon as something else changes via the issue tracker. I will remove the label and trigger a branch update. The latter will update the labels in the issue tracker so that will not happen again with this PR.
| Labels |
Removed:
Updates Requested
|
||
@brianteeman because you are in a model context "Factory::getApplication()->getIdentity()" can be replaced with "$this->getCurrentUser()"
Thanks @richard67 I have removed it.
I have tested this item ✅ successfully on 1847c70
I 'just' re-tested in the last 5 minutes and successfully again ! :) Thanks for the work and persistence @travisrisner.
Thanks
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-08-25 09:21:09 |
| Closed_By | ⇒ | rdeutz |
@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.