User tests: Successful: Unsuccessful:
Pull Request for Issue #39768
Allow subform field value to be an array when prepared for output. The PlgFieldsSubform->onCustomFieldsBeforePrepareField() method assumes that the subform data will be coming from the database as json, whereas the data (for contact.mail custom fields) is coming from direct from the input passed to the FieldHelpers $valuesToOverride param as an array. Hence, the change allows the json_decode to be skipped if the value is already an array.
Also removed the redundant comment ("Check if the field should be processed by us") which has already been removed from some of the other field plugins.
500 Error: json_decode(): Argument #1 ($json) must be of type string, array given
Location: JROOT/plugins/fields/subform/subform.php:128
No error. The subform values are included in the email to the contact as html.
Category | ⇒ | Front End Plugins |
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-02-22 17:42:10 |
Closed_By | ⇒ | fancyFranci |
Thanks a lot!
I have tested this item✅ successfully on ae840fc
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39842.