? Success

User tests: Successful: Unsuccessful:

avatar phproberto
phproberto
27 Oct 2016

1. Issue description

Joomla allows flexible columns for columns like published, checked_out, etc. You just have to define in your table a property like:

    /**
     * Array with alias for "special" columns such as ordering, hits etc etc
     *
     * @var    array
     */
    protected $_columnAlias = array(
        'published' => 'state'
    );

And Joomla will be able to publish & unpublish items using the state column. That works perfectly for tables that extend JTable but does not for tables that extend JTableNested.

2. Summary of Changes

This replaces the hardcoded published column with $this->getColumnAlias('published') which defaults to published if alias is not defined. So it should be 100% compatible.

3. Testing Instructions.

  1. Apply the patch.
  2. Go to Content > Categories and try to publish & unpublish some categories.
  3. Ensure that no errors are shown.
  4. Ensure that unpublishing a category with children also unpublishes child categories.
  5. Ensure that publishing a category with children also publishes child categories.

4. Documentation Changes Required

This is an improvement to make tables more flexible and has no implications on documentation.

avatar phproberto phproberto - open - 27 Oct 2016
avatar phproberto phproberto - change - 27 Oct 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Oct 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 27 Oct 2016
Category Libraries
avatar phproberto phproberto - change - 27 Oct 2016
The description was changed
avatar phproberto phproberto - edited - 27 Oct 2016
avatar RonakParmar
RonakParmar - comment - 27 Oct 2016

I have tested this PR successfully but not able to submit my test result. I am getting "Missing commit SHA." error while submitting test result, please see the attached screen-dump.
screen shot 2016-10-27 at 01 55 40


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

avatar zero-24
zero-24 - comment - 27 Oct 2016

@mbabker can you take a look into the issue tracker problem?

avatar zero-24 zero-24 - alter_testresult - 27 Oct 2016 - RonakParmar: Tested successfully
avatar zero-24
zero-24 - comment - 27 Oct 2016

@RonakParmar i have just added your test. ?


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

avatar RonakParmar
RonakParmar - comment - 27 Oct 2016

@zero-24 Thanks for assist. :)


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

avatar brianteeman
brianteeman - comment - 27 Oct 2016

@ronakparmar clear your browser cache to solve the test result issue

avatar RonakParmar RonakParmar - test_item - 27 Oct 2016 - Tested successfully
avatar RonakParmar
RonakParmar - comment - 27 Oct 2016

I have tested this item successfully on c0e629d


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

avatar RonakParmar
RonakParmar - comment - 27 Oct 2016

@brianteeman Thank you for the help, I have checked in another browser and worked fine.


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

avatar mbabker
mbabker - comment - 27 Oct 2016

@mbabker can you take a look into the issue tracker problem?

The only "problem" is we have lengthy caching of media on the tracker so when asset changes are pushed it requires a cache refresh.

avatar infograf768 infograf768 - test_item - 28 Oct 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 28 Oct 2016

I have tested this item successfully on c0e629d


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

avatar infograf768 infograf768 - change - 28 Oct 2016
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 28 Oct 2016

RTC. Thanks Roberto


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

avatar joomla-cms-bot joomla-cms-bot - change - 28 Oct 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 29 Oct 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-10-29 09:37:22
Closed_By rdeutz
avatar rdeutz rdeutz - close - 29 Oct 2016
avatar rdeutz rdeutz - merge - 29 Oct 2016
avatar zero-24 zero-24 - close - 29 Oct 2016
avatar zero-24 zero-24 - change - 29 Oct 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment