User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This pull request (PR) fixes the "pkg_search" extension being checked out after an update from 3.10 or from a previous 4.0 version with an update history back to 3.10 where com_search with all its extensions hasn't been uninstalled before the update.
This is fixed by adding new update SQL scripts "4.0.6-2021-12-23.sql" which updates the extension record for "pkg_search" if that extensions hasn't been really checked out meanwhile.
The reason for the issue can be found in the old update SQL script "4.0.0-2021-08-17.sql", which inserts the record for that package with value "0" instead of "NULL" for the "checked_out" column:
In my opinion it would be a cleaner way to fix also these statements in these old SQL update scripts so they don't insert initially with a wrong value. Columns "checked_out" and "checked_out_time" should be removed from these inserts since they have the right default values.
But it was subject of arguments and also confusion in past when I had changed old update SQL scripts, which I'd like to avoid this time, and so I leave these old scripts alone.
With the later running update SQL "4.0.3-2021-09-04.sql", the extension record handled by this PR is removed again in case if no other extension than that package is installed.
So the new SQL script added by this PR will fix the record for the package in case if it is still there at the end.
Of course this fix should later be merged up into 4.1-dev, too.
It's another question if a value of zero in the "checked_out" column shall be treated as checked out or not by com_checkout and at other places.
Currently it is shown as checked out, and if people notice that and properly check in the item, all will be good.
But I observed in diverse presentations with J4 that people don't care.
That's why this PR here makes sense in my opinion regardless if we fix that behaviour or not.
I think even if we make the core handle "legacy" values for "checked_out" and "checked_out_time" columns in a b/c way in case if 3rd party extensions still do it the wrong way, the core should not do it in the wrong way for com_search.
None.
Status | New | ⇒ | Pending |
Category | ⇒ | SQL Administration com_admin Postgresql |
Thanks!
I have tested this item
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-01-31 19:18:03 |
Closed_By | ⇒ | jwaisner |
Set to "closed" on behalf of @jwaisner by The JTracker Application at issues.joomla.org/joomla-cms/36374
This was merged by George prior to my test. Closing out as this was fixed in the code base.
I have tested this item✅ successfully on 66f1378
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36374.