[6.0] Fix extensions check for updates bug#46075
Conversation
|
appears to work correctly in my limited test I wonder why the original code was changed |
|
My worry is that whatever broke the code here may also have broken code elsewhere and we just havent come across it yet. I wouldnt want us to need to keep using sticking plasters |
|
I have tested this item ✅ successfully on e10a351 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46075. |
|
Yes it seems to work correctly by resetting the variable. |
|
@joomdonation Could you update the phpstan-baseline.neon file? It seems PHPStan fails for your PR. It fails for parts of code not changed by your PR, no idea why. You can fix that by running |
|
@richard67 It would be great if you could help with this PR. I am not familiar with the process yet. |
|
@joomdonation Funny: Just restarting the PHPStan GitHub action has helped. No idea why. Anyway, no need for any changes on this PR. |
|
Thanks Richard |
|
I've restored the previous human test result in the issue tracker as the commit which has invalidated the test count was just an improvement of a code comment. |
|
I have tested this item ✅ successfully on eeb3106 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46075. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46075. |
|
Thanks for the fix @joomdonation and tester @joeforjoomla and tests at last minute @richard67 |
Pull Request for Issue # .
Summary of Changes
In Joomla 6, we use a single instance of
ExtensionAdapterto find updates for all extensions/update sites. The latest update found for previous extension is not reset before finding update for the next extension and it causes the strange bug described in the issue #46066. Basically, if the previous extension has higher version number than the next extension, the update for the next extension could not be found.Testing Instructions
ExtensionAdapterto find update for each extension)Note that you need to install the two extensions in exactly order above (Akeeba Backup needs to be installed first because it has higher version number than Admin Tools)
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
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