muscat
muscat copied to clipboard
Validation should validate all repeatable fields
The validation should validate the presence of all repeatable fields and not only the first. At the same time if a non repeatable field is repeated, i.e. wrong data, clearing the repetitions should not trigger validation again.
I'm resurrecting this for 5.3: there are cases when, in repeated fields, one is removed that the validation blocks saving because it thinks the empty one should contain data even if there is already another with data. This happened when deleting the 856 $z (when it was repeatable). It comes from this configuration:
"856":
tags:
z:
required_if:
"856": "u"
x:
required_if:
"856": "u"