? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
3 Feb 2020

Summary of Changes

Fixes an edge case in com_finder which gave a PHP Notice

Testing Instructions

Create a category in Joomla such as "Article 0 of 1" and save it. Then check your PHP error log (note due to the redirect to the list view you won't see this in the UI) and you'll find a PHP Notice. Apply patch. After patch the notice is gone.

Alternatively you can code review array_filter PHP documentation which tells you array keys are preserved. Which is bad for our for loop later on line 131 here 4.0-dev...wilsonge:patch-finderdiff-6f122d9d8749e848d0ea1343cf256cd1L131.

Documentation Changes Required

None

avatar joomla-cms-bot joomla-cms-bot - change - 3 Feb 2020
Category Administration com_finder
avatar wilsonge wilsonge - open - 3 Feb 2020
avatar wilsonge wilsonge - change - 3 Feb 2020
Status New Pending
avatar wilsonge wilsonge - change - 3 Feb 2020
The description was changed
avatar wilsonge wilsonge - edited - 3 Feb 2020
avatar wilsonge wilsonge - change - 3 Feb 2020
Title
[4.0] Ensure array keys are reset for any values removed
[4.0] Fix edge case PHP Notice in com_finder
avatar wilsonge wilsonge - edited - 3 Feb 2020
avatar wilsonge wilsonge - change - 3 Feb 2020
The description was changed
avatar wilsonge wilsonge - edited - 3 Feb 2020
avatar SharkyKZ SharkyKZ - test_item - 4 Feb 2020 - Tested successfully
avatar SharkyKZ
SharkyKZ - comment - 4 Feb 2020

I have tested this item successfully on 43ae611


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

avatar Hackwar Hackwar - test_item - 4 Feb 2020 - Tested successfully
avatar Hackwar
Hackwar - comment - 4 Feb 2020

I have tested this item successfully on 43ae611


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

avatar alikon alikon - change - 4 Feb 2020
Status Pending Ready to Commit
avatar alikon
alikon - comment - 4 Feb 2020

RTC


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

avatar wilsonge wilsonge - change - 4 Feb 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-02-04 14:08:52
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 4 Feb 2020
avatar wilsonge wilsonge - merge - 4 Feb 2020
avatar wilsonge
wilsonge - comment - 4 Feb 2020

Thanks guys!

Add a Comment

Login with GitHub to post a comment