? Success

User tests: Successful: Unsuccessful:

avatar roland-d
roland-d
10 May 2015

Problem

If no primary key value is passed to the publish method it is now not being respected as it is turned into an array, the loaded state is not being used as should. This PR fixes this issue introduced in #6893

Test instructions

  1. Apply pull request #6900 first
  2. Add the code below to the file administrator/component/com_cpanel/cpanel.php after line 10.
    This will show the problem as we first unpublish the record and then publish it.

     require_once JPATH_ADMINISTRATOR.'/components/com_contact/tables/contact.php';
     $row = JTable::getInstance('Contact', 'ContactTable');
     $row->load(1);
     $row->publish(1, 0);
     $row->publish();
     echo 'Published: ' . $row->published;
  3. Load the administrator control panel and it shows Published: 0. This is wrong because we just published the record.

  4. Apply the patch
  5. Load the administrator control panel and it shows Published: 1. This is correct because we just published the record.
  6. Testing finished
avatar roland-d roland-d - open - 10 May 2015
avatar joomdonation
joomdonation - comment - 10 May 2015

@test: Success.

avatar zero-24 zero-24 - change - 10 May 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 10 May 2015
Labels Added: ?
avatar zero-24
zero-24 - comment - 10 May 2015

@test success RTC Thanks :smile:

avatar zero-24 zero-24 - change - 10 May 2015
Category Libraries
avatar zero-24 zero-24 - change - 10 May 2015
Status New Ready to Commit
avatar zero-24 zero-24 - alter_testresult - 10 May 2015 - joomdonation: Tested successfully
avatar zero-24 zero-24 - test_item - 10 May 2015 - Tested successfully
avatar zero-24 zero-24 - change - 10 May 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 10 May 2015
Labels Added: ?
avatar zero-24 zero-24 - close - 10 May 2015
avatar roland-d roland-d - change - 10 May 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-05-10 12:52:53
Closed_By roland-d
avatar roland-d roland-d - close - 10 May 2015
avatar roland-d roland-d - close - 10 May 2015
avatar Kubik-Rubik
Kubik-Rubik - comment - 10 May 2015

Thank you @roland-d for this fix. Merged this PR!

avatar Kubik-Rubik Kubik-Rubik - change - 10 May 2015
Milestone Added:
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment