Skip to content

json field normalisation - try to decode if value is a string#18705

Open
i-just wants to merge 1 commit into5.xfrom
bugfix/18696-json-field-normalization
Open

json field normalisation - try to decode if value is a string#18705
i-just wants to merge 1 commit into5.xfrom
bugfix/18696-json-field-normalization

Conversation

@i-just
Copy link
Copy Markdown
Contributor

@i-just i-just commented Apr 14, 2026

Description

This PR updates the Json::normalizeValue() method so that it can normalise a string value by trying to decode json from it.

It also removes the override of normalizeValueFromRequest() as it would now be identical to craft\base\Field::normalizeValueFromRequest().

Together, those changes allow for an array value to be posted and processed correctly.

Related issues

#18696

@i-just i-just requested a review from brandonkelly April 14, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant