RTC PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
10 Jan 2024

The $item parameter FieldsHelper::getFields has to be an object or array and not null.

avatar laoneo laoneo - open - 10 Jan 2024
avatar laoneo laoneo - change - 10 Jan 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Jan 2024
Category Administration com_fields
avatar sandewt
sandewt - comment - 10 Jan 2024

The $item parameter FieldsHelper::getFields has to be an object or array and not null.

I don't understand this, because in line 108 $item gets the value null? You probably mean something else.

In line 128 I can see that the variable $item can be an array.

How can I best test this PR?

avatar laoneo
laoneo - comment - 10 Jan 2024

Use a debugger and check the types of $item while working with custom fields. But as you can see in the code, it can be an object, array or null. The doc comment is wrong as it can, but not must, be null.

If you want to test something as this one here is just cosmetic, better to look at #42473.

avatar sandewt sandewt - test_item - 10 Jan 2024 - Tested successfully
avatar sandewt
sandewt - comment - 10 Jan 2024

I have tested this item ✅ successfully on 37df313

cosmetically tested by just looking at the code


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

avatar chmst chmst - test_item - 10 Jan 2024 - Tested successfully
avatar chmst
chmst - comment - 10 Jan 2024

I have tested this item ✅ successfully on 37df313

Working on differnt applications with custom fields. No problem with this PR.


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

avatar Quy Quy - change - 10 Jan 2024
Status Pending Ready to Commit
Labels Added: PR-4.4-dev
avatar Quy
Quy - comment - 10 Jan 2024

RTC


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

avatar MacJoom MacJoom - change - 10 Jan 2024
Labels Added: RTC
avatar MacJoom MacJoom - change - 10 Jan 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-01-10 19:22:33
Closed_By MacJoom
avatar MacJoom MacJoom - close - 10 Jan 2024
avatar MacJoom MacJoom - merge - 10 Jan 2024

Add a Comment

Login with GitHub to post a comment