Skip to content

Commit e7785e6

Browse files
committed
add changelog
1 parent 94e1218 commit e7785e6

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

user_guide_src/source/changelogs/v4.7.1.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Bugs Fixed
6060
- **Toolbar:** Fixed a bug in the Routes panel where only the first route parameter was converted to an input field on hover.
6161
- **Testing:** Fixed a bug in ``FeatureTestTrait::withRoutes()`` where invalid HTTP methods were not properly validated, thus passing them all to ``RouteCollection``.
6262
- **Validation:** Rule ``valid_cc_number`` now has the correct translation.
63+
- **Validation:** Fixed a bug where rules did not fire for array elements missing a key when using wildcard fields (e.g., ``contacts.friends.*.name``).
6364
- **View:** Fixed a bug where ``View`` would throw an error if the ``appOverridesFolder`` config property was not defined.
6465

6566
See the repo's

user_guide_src/source/libraries/validation.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,11 @@ valid_url_strict Yes Fails if field does not contain a valid URL.
10431043
``FILTER_VALIDATE_URL``.
10441044
======================= ========== ============================================= ===================================================
10451045

1046+
.. note:: When validating nested array data with the wildcard ``*`` syntax, use ``required``,
1047+
``required_with``, or ``required_without`` to ensure that every array element is checked
1048+
for the presence of a key. Without one of these rules, elements whose key is absent are
1049+
silently skipped.
1050+
10461051
.. note:: You can also use any native PHP functions that return boolean and
10471052
permit at least one parameter, the field data to validate.
10481053

0 commit comments

Comments
 (0)