? ? Pending

User tests: Successful: Unsuccessful:

avatar ReLater
ReLater
22 May 2022

Summary of Changes

  • The second part of condition !empty($this->item->pagination) && $this->item->pagination is redundant. "If it's not empty then it is" ;-)
  • See other similar code lines in the file where this double check has been removed already a long time ago.

Testing Instructions

  • Code review.
avatar ReLater ReLater - open - 22 May 2022
avatar ReLater ReLater - change - 22 May 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 May 2022
Category Front End com_content
avatar toivo toivo - test_item - 23 May 2022 - Tested successfully
avatar toivo
toivo - comment - 23 May 2022

I have tested this item successfully on f2b8703

Tested successfully in Joomla 4.1.4-rc2-dev of 23 May.


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

avatar ChristineWk ChristineWk - test_item - 23 May 2022 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 23 May 2022

I have tested this item successfully on f2b8703


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

avatar richard67 richard67 - change - 23 May 2022
Status Pending Ready to Commit
Labels Added: ?
avatar richard67
richard67 - comment - 23 May 2022

RTC


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

avatar chmst
chmst - comment - 23 May 2022

I cannot find the code in may 4.1-dev branch.
https://github.com/joomla/joomla-cms/blob/4.1-dev/components/com_content/tmpl/article/default.php#L138
This change was made a year ago 733786f
or am I missing something?

avatar richard67
richard67 - comment - 23 May 2022

I cannot find the code in may 4.1-dev branch. https://github.com/joomla/joomla-cms/blob/4.1-dev/components/com_content/tmpl/article/default.php#L138 This change was made a year ago 733786f or am I missing something?

@chmst Your link goes to line 138, but this PR changes line 95. The old commit changed line 43.

avatar chmst
chmst - comment - 23 May 2022

oops - thanks, this code needs more improvement ;)

avatar Quy Quy - change - 28 May 2022
Labels Added: ?
avatar Quy Quy - change - 28 May 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-05-28 19:09:43
Closed_By Quy
avatar Quy Quy - close - 28 May 2022
avatar Quy Quy - merge - 28 May 2022
avatar Quy
Quy - comment - 28 May 2022

Thanks

Add a Comment

Login with GitHub to post a comment