Repository navigation
[5.1] Load plugin group when executing batch tasks - #39013
Merged
Merged
Conversation
Contributor
|
Is there a reason to drop this in each function rather than in the common initBatch function? |
Member
Author
|
We had a discussion that with overriding and... I'll change it. 😉 |
|
So now the content plugins will be triggered regardless if the method returns false, is that desirable behaviour? |
Member
Author
|
This PR does not execute any plugins. It just loads the plugin group. The actual events are only executed in the single steps. |
Contributor
|
I have tested this item ✅ successfully on d0f01a6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39013. |
Contributor
|
I have tested this item ✅ successfully on 23247a9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39013. |
Contributor
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39013. |
Contributor
|
Thank you Hannes! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary of Changes
@grantg182 found an issue in J3 that batch operations aren't loading the content plugin group. He provided a quick fix in #38378, but since we don't do bugfixes in J3 anymore, this is unfortunately not acceptable anymore. However, this is still valid in J4 and thus this PR introduces loading these plugins in batch properly.
Testing Instructions
Add a
die();in the beginning of a content plugin. Batch move a few articles. See that it goes through. Apply patch. Move the articles again. See that you get a white screen because the content plugins are loaded.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