[5.0] Select all columns in extensions uninstallation on update #40775
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for #40768 (comment) .
Summary of Changes
With my just merged PR #40768 , extensions uninstallation with optional parameter migration on update was implemented in 5.0-dev.
But the
enabledstatus of the extension is not passed to the migration function, so that function can not work differently depending on that status. There might also be other columns in the extensions table which might be of interest of a migration function.This PR here fixes that by selecting all columns with the database query, so the
$rowobject passed to the migration function contains them all.Testing Instructions
Code review should be enough.
Actual result BEFORE applying this Pull Request
The extensions uninstallation with parameter migration on update passes only the
extension_idand theparamsproperties of the extension to the migration function.Expected result AFTER applying this Pull Request
The extensions uninstallation with parameter migration on update passes all properties of the extension to the migration function.
Link to documentations
Please select:
No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed