RTC PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar Elfangor93
Elfangor93
23 Oct 2025

Pull Request for Issue #46040 .

Summary of Changes

Remove the model check in onTableAfterStore of the Behaviour - Versionable (plg_behaviour_versionable).

This PR needs the PR #46268.
In PR #46268, both saving and deleting are handled by VersionableModelInterface. Therefore, extensions using VersionableModelInterface can update their Table classes to remove implements VersionableTableInterface. Therefore the code removed in this PR is no longer required.

Testing Instructions

Use Joomla! 6

Test 1 (Check if versioning works)

  1. Install a component which uses versioning. e.g Weblinks component
    (https://downloads.joomla.org/extensions/weblinks/5-0-0)
  2. Enable versioning for this component
  3. Create a version history and delete the version afterwards again.

Test 2 (Check if installation works)

  1. Install JoomGallery Extension (Available here)

Actual result BEFORE applying this Pull Request

Test 1
Creating and deleting of versions is working correctly.

Test 2
JoomGallery extension installation fails.

Expected result AFTER applying this Pull Request

Test 1
Creating and deleting of versions is working correctly.

Test 2
JoomGallery extension installation successful.

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 Elfangor93 Elfangor93 - open - 23 Oct 2025
avatar Elfangor93 Elfangor93 - change - 23 Oct 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2025
Category Front End Plugins
avatar Elfangor93 Elfangor93 - change - 23 Oct 2025
Labels Added: PR-6.0-dev
avatar richard67
richard67 - comment - 23 Oct 2025

@joomdonation Could you check this one here? Thanks in advance.

avatar Elfangor93 Elfangor93 - change - 24 Oct 2025
The description was changed
avatar Elfangor93 Elfangor93 - edited - 24 Oct 2025
avatar joomdonation
joomdonation - comment - 24 Oct 2025

@richard67 Yes, it works. But I would like to take this chance to clean up the method a bit more: Some check should be performed earlier, some check is redundant, the mis-leading comment... @Elfangor93 Could you please check and merge my PR Elfangor93#2 to your branch if it is OK for you?

avatar Elfangor93
Elfangor93 - comment - 24 Oct 2025

Thanks @joomdonation I merged your PR.
But I had to add a token to the function strtok() you used as a replacement for explode(). Since php 8.3, strtok() requires a token (string) as the second function parameter.

https://www.php.net/manual/de/function.strtok.php#refsect1-function.strtok-changelog

avatar richard67
richard67 - comment - 24 Oct 2025

Thanks @joomdonation I merged your PR. But I had to add a token to the function strtok() you used as a replacement for explode(). Since php 8.3, strtok() requires a token (string) as the second function parameter.

https://www.php.net/manual/de/function.strtok.php#refsect1-function.strtok-changelog

I was just about to comment in the same way, but @Elfangor93 you were was faster.

avatar joomdonation
joomdonation - comment - 24 Oct 2025

But I had to add a token to the function strtok()

Yes, I missed it in my code. Thanks for adding it. Busy at the moment, so I will test it later today.

avatar Elfangor93 Elfangor93 - change - 24 Oct 2025
Title
[6.0] Remove model check in plg_behaviour_versionable
[6.0] Optimize checks in plg_behaviour_versionable
avatar Elfangor93 Elfangor93 - edited - 24 Oct 2025
avatar joomdonation
joomdonation - comment - 24 Oct 2025

BTW, we do not use this plugin in core anymore. So to test it, we will need to test and make sure version history still work for extensions use this plugin. I guess we can use Weblinks for testing https://downloads.joomla.org/extensions/weblinks/5-0-0

avatar Elfangor93 Elfangor93 - change - 24 Oct 2025
The description was changed
avatar Elfangor93 Elfangor93 - edited - 24 Oct 2025
avatar Elfangor93 Elfangor93 - change - 24 Oct 2025
The description was changed
avatar Elfangor93 Elfangor93 - edited - 24 Oct 2025
avatar joomdonation joomdonation - test_item - 25 Oct 2025 - Tested successfully
avatar joomdonation
joomdonation - comment - 25 Oct 2025

I have tested this item ✅ successfully on 154102f


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46360.

avatar joomdonation
joomdonation - comment - 25 Oct 2025

Version history in Weblinks is broken at the moment (due to invalid data in #__content_types database table, happens since the time we namespaced the extension but I no-one knows about the bug), so it could not be used for testing. I made correction to the data manually, tested weblinks version history and it worked

So for other testers, all you need to test is making sure version history still works OK for article and maybe contact still work as expected. A bonus test would be making sure JoomGallery is being installed properly as mentioned in testing instructions, but it is not really required.

avatar MrMusic
MrMusic - comment - 30 Oct 2025

I applied the code changes from this PR in an existing J6.0.0 installation.
Afterwards, the installation of JoomGallery also worked (without problems or workarounds) with Joomla 6.
Versioning of articles and categories still works as expected.
I have tested this item ✅ successfully.

avatar richard67
richard67 - comment - 30 Oct 2025

@MrMusic Please go to this PR in the issue tracker here https://issues.joomla.org/tracker/joomla-cms/46360 and mark your test result by using the blue "Test this" button at the top left corner, selecting your test result and submitting. Posting a comment with a green check mark is not sufficient for the result being properly counted. Thanks in advance.

avatar exlemor
exlemor - comment - 31 Oct 2025

In the famous words of @brianteeman ;), if you don't match the BEFORE condition, then something is wrong ;) lol

Possibly, I did something wrong but I installed Joomla 6 Nightly, installed Weblinks, and when I tried to check versioning after having made a couple of versions, I receive this error message:

An error has occurred.
0 Class must be an instance of Joomla\CMS\Table\TableInterface
[ Return to Dashboard]

Did I do something wrong? ;(

avatar brianteeman
brianteeman - comment - 31 Oct 2025
avatar exlemor exlemor - test_item - 1 Nov 2025 - Tested successfully
avatar exlemor
exlemor - comment - 1 Nov 2025

I have tested this item ✅ successfully on 154102f

I was able to test this successfully! (Thanks @brianteeman)

Thanks @Elfangor93 for the fix/PR.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46360.

avatar richard67
richard67 - comment - 1 Nov 2025

@MrMusic Please mark your test result as instructed here #46360 (comment) .

avatar richard67
richard67 - comment - 1 Nov 2025

@MrMusic As you haven't reacted on my request to mark your test result, I will do that for you.

Every PR needs 2 human tests to be accepted, and marking the test result makes sure that the tests are counted and helps maintainers to find these PRs.

Not marking the test result causes additional work for maintainers.

avatar richard67 richard67 - alter_testresult - 1 Nov 2025 - MrMusic: Tested successfully
avatar richard67 richard67 - change - 1 Nov 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 1 Nov 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46360.

avatar MrMusic MrMusic - test_item - 1 Nov 2025 - Tested successfully
avatar MrMusic
MrMusic - comment - 1 Nov 2025

I have tested this item ✅ successfully on 154102f


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46360.

avatar MrMusic
MrMusic - comment - 1 Nov 2025

@MrMusic As you haven't reacted on my #46360 (comment), I will do that for you.

@richard67 Thank you for taking care of that.

Every PR needs 2 human tests to be accepted, and marking the test result makes sure that the tests are counted and helps maintainers to find these PRs.
Not marking the test result causes additional work for maintainers.

Sorry, but for personal reasons, I am not always able to respond quickly.

avatar Bodge-IT Bodge-IT - change - 5 Nov 2025
Title
[6.0] Optimize checks in plg_behaviour_versionable
[6.0] Optimise checks in plg_behaviour_versionable
avatar Bodge-IT Bodge-IT - edited - 5 Nov 2025
avatar softforge softforge - change - 10 Nov 2025
Labels Added: RTC
avatar softforge softforge - change - 10 Nov 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-11-10 22:53:26
Closed_By softforge
avatar softforge softforge - close - 10 Nov 2025
avatar softforge softforge - merge - 10 Nov 2025
avatar softforge
softforge - comment - 10 Nov 2025

thank you @Elfangor93 and the testers for your hard work

Add a Comment

Login with GitHub to post a comment