? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
17 Jun 2016

This PR is a general overview and cleanup of some code structure and doc blocks in the admin com_content component. Changes of note:

  • Doc blocks cleaned up some to follow standard
  • Return the results of the view's display() methods to be consistent with the documented return
  • Not using variables for items only referenced once
  • Use Joomla\Utilities\ArrayHelper instead of JArrayHelper
  • Removed empty override methods (the parent class' method is also empty)

Testing Instructions

The admin com_content component should continue to function correctly

avatar mbabker mbabker - open - 17 Jun 2016
avatar mbabker mbabker - change - 17 Jun 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jun 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 17 Jun 2016
Category Code style Components
avatar hardiktasol hardiktasol - test_item - 24 Jun 2016 - Tested successfully
avatar hardiktasol
hardiktasol - comment - 24 Jun 2016

I have tested this item successfully on 76a78d7

No issues. Everything works as it is.


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

avatar pritalpatel
pritalpatel - comment - 27 Jun 2016

Works fine after applying patch.
Tested using Manual and Automatic testing using Gherkin Scenarios

screen shot 2016-06-27 at 00 45 29


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

avatar pritalpatel pritalpatel - test_item - 27 Jun 2016 - Tested successfully
avatar pritalpatel
pritalpatel - comment - 27 Jun 2016

I have tested this item successfully on 76a78d7


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

avatar brianteeman brianteeman - change - 27 Jun 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 27 Jun 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 27 Jun 2016
Labels Added: ?
avatar shubhamnba2009
shubhamnba2009 - comment - 27 Jun 2016

https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/models/article.php#L398

I was going through the commit and came across this code at line pointed in the link above

$app = JFactory::getApplication();
$assoc = JLanguageAssociations::isEnabled()
// Check if article is associated
if ($this->getState('article.id') && $app->isSite() && $assoc)

Can this be replaced by this?

// Check if article is associated
if ($this->getState('article.id') && JFactory::getApplication()->isSite() && JLanguageAssociations::isEnabled() )

avatar shubhamnba2009
shubhamnba2009 - comment - 27 Jun 2016

And one more question
Is the files under administrator/com_content/views/article/tmpl, administrator/com_content/views/articles/tmpl, administrator/com_content/views/featured/tmpl also overviewed in this PR?

avatar mbabker
mbabker - comment - 27 Jun 2016

Layout files are purposefully untouched. Also untouched are changes made after I originally created this commit many months ago. Right now it's fine as is.

avatar roland-d
roland-d - comment - 16 Jul 2016

Did a code review and all looks good except that one issue. Haven't tested yet due to merge conflicts. Once resolved I will test further.

avatar roland-d roland-d - change - 16 Jul 2016
Milestone Added:
avatar roland-d roland-d - change - 16 Jul 2016
Status Ready to Commit Information Required
Labels
avatar joomla-cms-bot joomla-cms-bot - change - 16 Jul 2016
Milestone Removed:
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jul 2016
Labels Removed: ?
avatar brianteeman brianteeman - change - 12 Aug 2016
Status Information Required Pending
avatar brianteeman
brianteeman - comment - 14 Aug 2016

@roland-d can you test this now please


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

avatar roland-d
roland-d - comment - 16 Aug 2016

Seems like we hit another merge conflict :-/

avatar joomla-cms-bot joomla-cms-bot - change - 16 Aug 2016
Category Code style Components Administration Components Code style
avatar wilsonge
wilsonge - comment - 4 Sep 2016

Merged with dcf2d3e

avatar wilsonge wilsonge - change - 4 Sep 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-09-04 01:02:16
Closed_By wilsonge
avatar wilsonge wilsonge - close - 4 Sep 2016

Add a Comment

Login with GitHub to post a comment