You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line changes the items property from being an associative array with nested items to simply become 'items' => 'items.*.to'.
I tested this with various different nested rules and it seems to always overwrite the root rule with the last nested rule. What I mean by this is that items is the root rule and items.*.to is the last nested rule and that last nested rule overwrites items with its value.
The text was updated successfully, but these errors were encountered:
faustbrian
changed the title
Deep nested data handled wrong
Deep nested data validated wrong - nested rule values overwrite root rule values
Aug 5, 2019
Livewire at the moment seems to handle deep nested data and validation in a wrong way. The given example results in such wrong way of handling it.
This line changes the
items
property from being an associative array with nested items to simply become'items' => 'items.*.to'
.I tested this with various different nested rules and it seems to always overwrite the root rule with the last nested rule. What I mean by this is that
items
is the root rule anditems.*.to
is the last nested rule and that last nested rule overwritesitems
with its value.The text was updated successfully, but these errors were encountered: