[5.4] Fix duplicate getLayoutData execution in mod_tags_popular#46827
[5.4] Fix duplicate getLayoutData execution in mod_tags_popular#46827muhme merged 2 commits intojoomla:5.4-devfrom
Conversation
|
@sathwikre Your fix looks good. However, the change in the two files build/build.php and components/com_contact/tmpl/contact/default_form.php should not be included in this PR. Could you please check? |
5eddef6 to
cadaef4
Compare
|
Thanks for checking. You’re right — those changes were unrelated. I’ve cleaned up the branch so |
|
@sathwikre There is still an unrelated file build/build.php. You can check it here https://github.com/joomla/joomla-cms/pull/46827/changes |
0361fa2 to
eb89f3b
Compare
|
Thanks for pointing that out. You’re right — the branch still contained unrelated changes due to an |
|
That's not right. The change to the file build/build.php is still there. You can check it yourself https://github.com/joomla/joomla-cms/pull/46827/changes |
eb89f3b to
0396a32
Compare
|
Thanks for your patience — you were right. I had been resetting the branch against my fork instead of the upstream The PR now contains a single relevant file change. |
|
Yes, looks good now. Thanks ! |
|
@sathwikre When creating a pull request you should always check the result on GitHub, not only in your IDE. Depending on your editor settings, if it shows white space (spaces and tabs) or not, you might not see code style issues in the IDE, and also unwanted changes can be avoided when checking the PR on GitHub. |
|
@sathwikre P.S.: And you should stick with our pull request template and not remove all these things from it. You PR is missing testing instructions. I am pretty sure I've already told you elsewhere in some other PR. |
|
@joomdonation Is it right that the method modified by this PR now returns false in some case? It did not do that before. Technically it could even be considered a b/c break. It needs to check where that method is called to see if false is ok or if it should be null or an empty array. Maybe you can advise? |
|
@richard67 The PR is fine. Return false will prevent the module from being rendered, see https://github.com/joomla/joomla-cms/blob/5.4-dev/libraries/src/Dispatcher/AbstractModuleDispatcher.php#L66 |
@joomdonation I see. Thanks for checking. |
|
I have tested this item ✅ successfully on 0396a32 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46827. |
|
I have tested this item ✅ successfully on 0396a32 I assume that this is distinct from the issue about Popular Tags module not reporting the correct number of tags. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46827. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46827. |
|
✅ Final test before merge using JBT
|
|
Thank you @sathwikre for your contribution. Thank you @joomdonation and @richard67 for supporting this PR. Thank you @Denitz and @exlemor for testing. |
The popular tags module executes getLayoutData() twice due to an
overridden dispatch() method.
This change removes the custom dispatch() override and moves the
render-stop logic into getLayoutData(), preventing duplicate execution
and unnecessary queries.
Fixes #46816