Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add upgrade instruction in upgrade_416.rst #5546

Merged
merged 1 commit into from
Jan 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions user_guide_src/source/installation/upgrade_416.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ Validation result changes

Due to a bug fix, the Validation now might change the validation results when you validate an array item (see :ref:`Changelog <changelog-v416-validation-changes>`). So check the validation results for all the code that validates the array. Validating multiple fields like ``contacts.*.name`` is not affected.

If you have the following form::

<input type='text' name='invoice_rule[1]'>
<input type='text' name='invoice_rule[2]'>

And you have the validation rule like this::

'invoice_rule' => ['rules' => 'numeric', 'errors' => ['numeric' => 'Not numeric']]

Change the rule key to ``invoice_rule.*`` and the validation will work.

Breaking Enhancements
*********************

Expand Down