muscat icon indicating copy to clipboard operation
muscat copied to clipboard

Validation should validate all repeatable fields

Open xhero opened this issue 8 years ago • 1 comments

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.

xhero avatar Jun 01 '16 11:06 xhero

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"

xhero avatar Jul 02 '19 08:07 xhero