? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
31 May 2021

Summary of Changes

#34257 (@brianteeman) added rendering in the helper (which is used as a proxy to the model, for a getList method calling a getItems in the model.

This is the wrong place to be rendering output.

This PR moves the output rendering to the parent module file.

Testing Instructions

Add the Articles - Most Read module to your home page and view it with Record Hits enabled and disabled in Article Options.

and/or code review

Actual result BEFORE applying this Pull Request

Same as before this PR

Expected result AFTER applying this Pull Request

Same as before this PR but correct code placement.

Documentation Changes Required

None.

This PR will conflict with #34318 eventually - when it does I'll fix it before merge

avatar PhilETaylor PhilETaylor - open - 31 May 2021
avatar PhilETaylor PhilETaylor - change - 31 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 May 2021
Category Modules Front End
avatar PhilETaylor PhilETaylor - change - 31 May 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 31 May 2021
avatar PhilETaylor
PhilETaylor - comment - 31 May 2021

This PR will conflict with #34318 eventually - when it does I'll fix it before merge

avatar Quy Quy - test_item - 31 May 2021 - Tested successfully
avatar Quy
Quy - comment - 31 May 2021

I have tested this item successfully on 213b623


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34320.

avatar Abernyte-Git Abernyte-Git - test_item - 1 Jun 2021 - Tested successfully
avatar Abernyte-Git
Abernyte-Git - comment - 1 Jun 2021

I have tested this item successfully on 213b623


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34320.

avatar richard67 richard67 - change - 1 Jun 2021
Status Pending Ready to Commit
Labels Added: ?
avatar richard67
richard67 - comment - 1 Jun 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34320.

avatar HLeithner
HLeithner - comment - 2 Jun 2021

Not that bothers to much but shouldn't this be in it's own layout then?

avatar PhilETaylor
PhilETaylor - comment - 2 Jun 2021

yes probably, but its overkill as its

  1. Used once, in one place
  2. more function calls, file loads, just to echo out a single string

:)

avatar richard67
richard67 - comment - 3 Jun 2021

@PhilETaylor Could you fix the conflict in file modules/mod_articles_popular/src/Helper/ArticlesPopularHelper.php? It comes from your other, merged PR #34318 .

avatar PhilETaylor PhilETaylor - change - 3 Jun 2021
Labels Added: Conflicting Files ?
avatar PhilETaylor
PhilETaylor - comment - 3 Jun 2021

Done.

avatar richard67 richard67 - alter_testresult - 3 Jun 2021 - Quy: Tested successfully
avatar richard67 richard67 - alter_testresult - 3 Jun 2021 - Abernyte-Git: Tested successfully
avatar richard67
richard67 - comment - 3 Jun 2021

@PhilETaylor Thanks. In fact this PR had the correction of the other one already, as I could see, so the last commit was just a clean branch update.

Previous test results are still valid. I've restored them in the issue tracker.

avatar chmst chmst - change - 6 Jun 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-06-06 21:10:08
Closed_By chmst
Labels Added: ?
Removed: Conflicting Files ?
avatar chmst chmst - close - 6 Jun 2021
avatar chmst chmst - merge - 6 Jun 2021
avatar chmst
chmst - comment - 6 Jun 2021

Thanks!

Add a Comment

Login with GitHub to post a comment