User tests: Successful: Unsuccessful:
Pull Request for Issue #37204 .
Add null value support to the "UpdatesiteTable" class to fix the issue with column "checked_out" being 0 and "checked_out_time" being '0000-00-00 00:00:00' after having saved an update site in backend e.g. for changing the download key or after a checked out update site was checked in with the icon in the update sites view and not in Global Checkin.
For this test it does not even need an extension with a download key like it was in the reported issue, but if you want to test that, too, you can use this fake "paid download" extension Null file which was used for testing several PRs in past, e.g. #34419 or #34386 . Thanks @nikosdion for the file.
Make sure that there are no checked out items shown in the System Dashboard beside "Global Check-in" in the "Maintenance" section, i.e. a green check mark is shown and not a number in a yellow box. If there are items checked out, i.e.. a number is shown, go to Global Check-in and check in all checked out items.
Go to "Update Sites" go to the edit view of any update site by selecting its title.
Note that if the update site doesn't have any download key, there is nothing to edit and only a button to close.
Use the close button. Alternatively, if you have an extension which uses a download key, update that key to some value and save and close.
Check if there is a checked-out icon left beside the title of the previously "edited" update site.
Result: There is no checked-out icon for that update site.
Check Global Check-in if something is shown as checked out.
Result:
Make sure that there are no checked out items shown in the System Dashboard beside "Global Check-in" in the "Maintenance" section, i.e. a green check mark is shown and not a number in a yellow box. If there are items checked out, i.e.. a number is shown, go to Global Check-in and check in all checked out items.
Go to "Update Sites" go to the edit view of any update site by selecting its title.
Use the "back" button of your browser to leave the view and cause the item to be checked out.
Result: The update site has a checked-out icon left beside the title.
Click the checked-out icon to check in the update site.
Result: The update site doesn't have a checked-out icon anymore left beside the title.
Check Global Check-in if something is shown as checked out.
In Global Check-in there is one checked out item shown for the update sites table.
In database "checked_out" is 0 and "checked_out_time" is '0000-00-00 00:00:00' for that update site.
Same as Test 1.
In Global Check-in there is no checked out icon shown.
In database "checked_out" and "checked_out_time" are both NULL for that update site.
Same as Test 1.
There is also a table class for the update sites table here: https://github.com/joomla/joomla-cms/blob/4.1-dev/libraries/src/Table/UpdateSite.php .
Theoretically the same change as made here with this PR in file "administrator/components/com_installer/src/Table/UpdatesiteTable.php" should also be made there.
Practically I have done that but it did not have any effect.
From reading our code I would expect it to be vice versa, the "UpdateSite.php" being used but not the "UpdatesiteTable.php", but as said, it is the "UpdatesiteTable.php" where the fix from this PR helps.
@bembelimen @wilsonge Do you have any idea? And should I make the same change in the "UpdateSite.php" anyway because it is the same database table and so should be handled in the same way here and there?
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_installer |
Title |
|
I have tested this item
Bug confirmed and patch works
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-03-07 12:22:06 |
Closed_By | ⇒ | bembelimen | |
Labels |
Added:
?
?
|
Thx
I have tested this item✅ successfully on 98b544f
Tested successfully in 4.1.1-dev of 5 March 2022 using Wampserver 3.2.7 with PHP 8.0.15 and MySQL 8.0.27
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37206.