? ? Pending

User tests: Successful: Unsuccessful:

avatar fluser
fluser
17 Feb 2022

Regression of #35610.

Summary of Changes

This pull request changes from "elvis operator" to "null coalescing operator", which automatically includes an isset() and "not null" check.

"null coalescing operator" was introduced in PHP7.0 - as Joomla 4.1 requires min PHP7.2.5 this change should not break anything.

Testing Instructions

Joomla 4.1 / PHP8.0.15 in combination with iCagenda pro 3.8.0-beta2 custom fields.

Actual result BEFORE applying this Pull Request

Warning Message with custom fields from iCagenda:

Warning: Undefined variable $id in layouts/joomla/form/renderfield.php on line 37

Other extensions may be affected too.

Expected result AFTER applying this Pull Request

No warning message anymore

Documentation Changes Required

No

avatar fluser fluser - open - 17 Feb 2022
avatar fluser fluser - change - 17 Feb 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Feb 2022
Category Layout
avatar fluser fluser - change - 17 Feb 2022
Title
Fix: "Undefined variable $id"
[4.1] Fix: "Undefined variable $id"
avatar fluser fluser - edited - 17 Feb 2022
avatar laoneo laoneo - test_item - 18 Feb 2022 - Tested successfully
avatar laoneo
laoneo - comment - 18 Feb 2022

I have tested this item successfully on b8045f7

Had the same issue with DPCalendar. This patch fixes it.


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

avatar laoneo laoneo - change - 18 Feb 2022
The description was changed
avatar laoneo laoneo - edited - 18 Feb 2022
avatar laoneo laoneo - change - 18 Feb 2022
The description was changed
avatar laoneo laoneo - edited - 18 Feb 2022
avatar chmst chmst - test_item - 18 Feb 2022 - Tested successfully
avatar chmst
chmst - comment - 18 Feb 2022

I have tested this item successfully on b8045f7


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

avatar chmst chmst - change - 18 Feb 2022
Status Pending Ready to Commit
avatar chmst
chmst - comment - 18 Feb 2022

RTC


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

avatar bembelimen bembelimen - change - 21 Feb 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-02-21 18:14:26
Closed_By bembelimen
Labels Added: ? ?
avatar bembelimen bembelimen - close - 21 Feb 2022
avatar bembelimen bembelimen - merge - 21 Feb 2022
avatar bembelimen
bembelimen - comment - 21 Feb 2022

Thx

avatar cyrezdev
cyrezdev - comment - 27 Feb 2022

Joomla 4.1 / PHP8.0.15 in combination with iCagenda pro 3.8.0-beta2 custom fields.

Thanks @fluser !
I had fixed it in stable release on my side, and you did the PR to fix it in Joomla core before i could ?

Add a Comment

Login with GitHub to post a comment