RTC bug PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar Quy
Quy
4 Mar 2024

Pull Request for Issue #40681 .

Summary of Changes

Separate conditions of the if statement to apply to new fields vs existing fields accordingly.

When creating a new field and the Search Index setting is Don't make searchable, the last 2 conditions are not applicable thus php warnings.

PHP Warning:  Attempt to read property "params" on null in \administrator\components\com_fields\src\Model\FieldModel.php on line 123
PHP Warning:  Trying to access array offset on value of type null in \administrator\components\com_fields\src\Model\FieldModel.php on line 123

Testing Instructions

Install Blog Sample Data.
No errors in PHP log.

Add a new custom field.
Save field.
No errors in PHP log.

avatar Quy Quy - open - 4 Mar 2024
avatar Quy Quy - change - 4 Mar 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Mar 2024
Category Administration com_fields
avatar Quy Quy - change - 4 Mar 2024
The description was changed
avatar Quy Quy - edited - 4 Mar 2024
avatar Quy Quy - change - 5 Mar 2024
Labels Added: bug PR-5.1-dev
avatar laoneo
laoneo - comment - 7 Mar 2024

Three times nested if conditions do look for me as not the right fix. Probably adding some comments to the existing one would be a better solution.

avatar Quy
Quy - comment - 9 Mar 2024

@Hackwar Please review as it originated with #38650. Thanks.

avatar exlemor exlemor - test_item - 11 Apr 2024 - Tested successfully
avatar exlemor
exlemor - comment - 11 Apr 2024

I have tested this item ✅ successfully on 51b02c0

I was able to test this successfully - tested every field type - no error log entries.


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

avatar cybersalt
cybersalt - comment - 11 Apr 2024

Try as I may, I could not get these errors even before the patch.

avatar viocassel viocassel - test_item - 15 Apr 2024 - Tested successfully
avatar viocassel
viocassel - comment - 15 Apr 2024

I have tested this item ✅ successfully on 51b02c0


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

avatar Quy Quy - change - 15 Apr 2024
Status Pending Ready to Commit
avatar Quy
Quy - comment - 15 Apr 2024

RTC


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

avatar bembelimen bembelimen - change - 11 May 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-05-11 19:56:07
Closed_By bembelimen
Labels Added: RTC
avatar bembelimen bembelimen - close - 11 May 2024
avatar bembelimen bembelimen - merge - 11 May 2024
avatar bembelimen
bembelimen - comment - 11 May 2024

Thx

Add a Comment

Login with GitHub to post a comment