? ? Pending

User tests: Successful: Unsuccessful:

avatar Quy
Quy
22 Feb 2019

Pull Request for Issue #23982

Summary of Changes

Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error

Testing Instructions

Use Joomla subform on PHP older than 5.5

Actual result

Fatal error: Can't use function return value in write context in /home/content/76/10380776/html/imbarcoimmediato/layouts/joomla/form/field/subform/repeatable-table.php on line 59

avatar Quy Quy - open - 22 Feb 2019
avatar Quy Quy - change - 22 Feb 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2019
Category Layout
avatar SharkyKZ
SharkyKZ - comment - 22 Feb 2019

Use a different variable name please. $description is already used:

* @var string $description The field description

avatar Quy Quy - change - 22 Feb 2019
Labels Added: ?
avatar SharkyKZ SharkyKZ - test_item - 3 Mar 2019 - Tested successfully
avatar SharkyKZ
SharkyKZ - comment - 3 Mar 2019

I have tested this item successfully on 6d36668


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

avatar Quy
Quy - comment - 4 Mar 2019

@joomdonation Please test. Thanks.

avatar joomdonation
joomdonation - comment - 4 Mar 2019

It works. But maybe we can just change the code to if ($field->description) instead of adding a new variable. Same for this line https://github.com/joomla/joomla-cms/blob/staging/layouts/joomla/form/field/subform/repeatable-table.php#L44 (change to if ($fieldset->description).

avatar joomdonation joomdonation - test_item - 4 Mar 2019 - Tested successfully
avatar joomdonation
joomdonation - comment - 4 Mar 2019

I have tested this item successfully on f1bb7f9


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Mar 2019

@SharkyKZ can you please retest?

avatar SharkyKZ SharkyKZ - test_item - 4 Mar 2019 - Tested successfully
avatar SharkyKZ
SharkyKZ - comment - 4 Mar 2019

I have tested this item successfully on f1bb7f9


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

avatar Quy Quy - change - 4 Mar 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 4 Mar 2019

RTC


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

avatar HLeithner HLeithner - change - 4 Mar 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-03-04 20:25:56
Closed_By HLeithner
Labels Added: ?
avatar HLeithner HLeithner - close - 4 Mar 2019
avatar HLeithner HLeithner - merge - 4 Mar 2019
avatar HLeithner
HLeithner - comment - 4 Mar 2019

thx

Add a Comment

Login with GitHub to post a comment