? ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
27 Feb 2021

Pull Request for Issue # .

Summary of Changes

This PR improves code of Article view abit:

  • Use a standard way to check if the current active menu item is linked to article (same with code on other places, not use strpos like before.
  • Remove repeating code (the case for there is no active menu item and active menu item is not linked to article is the same, can be moved into single else block)

Testing Instructions

  1. Apply patch
  2. Access to an article on the site. Make sure it is still working as before

Alternative, code review should be enough.

avatar joomdonation joomdonation - open - 27 Feb 2021
avatar joomdonation joomdonation - change - 27 Feb 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Feb 2021
Category Front End com_content
avatar toivo toivo - test_item - 27 Feb 2021 - Tested successfully
avatar toivo
toivo - comment - 27 Feb 2021

I have tested this item successfully on 22f97ef

Tested successfully in Beta8-dev of 27 February using PHP 8.0.2.


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

avatar ceford ceford - test_item - 10 Mar 2021 - Tested successfully
avatar ceford
ceford - comment - 10 Mar 2021

I have tested this item successfully on 22f97ef


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

avatar joomdonation
joomdonation - comment - 10 Mar 2021

Could someone mark this PR as RTC so that it could be merged if it is possible? There is still bad code in the view and I want to work on further clean up after this one get merged. Thanks !

avatar alikon alikon - change - 10 Mar 2021
Status Pending Ready to Commit
avatar alikon
alikon - comment - 10 Mar 2021

RTC


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

avatar rdeutz rdeutz - change - 10 Mar 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-03-10 19:17:20
Closed_By rdeutz
Labels Added: ? ?
avatar rdeutz rdeutz - close - 10 Mar 2021
avatar rdeutz rdeutz - merge - 10 Mar 2021

Add a Comment

Login with GitHub to post a comment