Success

User tests: Successful: Unsuccessful:

avatar richard67
richard67
9 Nov 2019

Pull Request for Issue # .

Summary of Changes

Fixes following PHP notices:

PHP Notice: Trying to get property 'insert_id' of non-object in /joomla-cms-4.0-dev/administrator/components/com_patchtester/PatchTester/Model/PullModel.php on line 599
PHP Notice: Undefined variable: revertErrored in /joomla-cms-4.0-dev/administrator/components/com_patchtester/PatchTester/Controller/ResetController.php on line 84

Testing Instructions

Code review: The mistakes are obvious:

  • In ResetController.php a variable is checked also in case if never initialized.
  • In PullModel.php a closing paranthesis ) is at the wrong place. The function which is called expects an integer parameter and returns an object.

Or apply and revert a PR and check the PHP error log or error display, with PHP error reporting set to maximum or development.

avatar richard67 richard67 - open - 9 Nov 2019
avatar richard67
richard67 - comment - 9 Nov 2019

Ping @Hackwar ;-)

avatar richard67 richard67 - change - 9 Nov 2019
The description was changed
avatar richard67 richard67 - edited - 9 Nov 2019
avatar richard67
richard67 - comment - 9 Nov 2019

Now is fine.

avatar richard67
richard67 - comment - 9 Nov 2019

There is something wrong with one of the 2 changes. I will make PR for the one which is ok, the other one I will investigate. Closing this in favour of the new PR's.

avatar richard67 richard67 - change - 9 Nov 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-11-09 11:51:15
Closed_By richard67
avatar richard67 richard67 - close - 9 Nov 2019
avatar richard67 richard67 - close - 9 Nov 2019
avatar richard67 richard67 - head_ref_deleted - 9 Nov 2019
avatar richard67
richard67 - comment - 9 Nov 2019

New PR no. 1 is #248 . Not sure if a 2nd one is needed. Will continue with testing.

avatar richard67 richard67 - head_ref_restored - 9 Nov 2019
avatar richard67 richard67 - head_ref_deleted - 9 Nov 2019
avatar richard67
richard67 - comment - 9 Nov 2019

Just for documentation: It seems that PR #248 fixed all PHP notices, the other notice has gone, too. So No 2nd PR needed as far as I can see now.

Add a Comment

Login with GitHub to post a comment