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
I'm using multi class adding on a page to add data objects to a many_many relation.
The data object's getCMSValidator() method only gets called after the data object is added to the relation. So the validation only takes place after the object is written and if you hit the save button again.
The text was updated successfully, but these errors were encountered:
In my case your workaround is not working. The $manyRelations are always empty. I'm using silverstripe 3.2.
getCMSValidator is partially working because it detects the missing relations. But I still got a strange behaviour. Validations in validate() will be only executed if getCMSValidator is successfully.
E.g. the user got an error for missing relation (getCMSValidator) and after fixing this, the user got further error messages (validate()).
Can somebody describe a correct implementation to use validate() and a if condition for non empty relation objects?
I'm using multi class adding on a page to add data objects to a many_many relation.
The data object's getCMSValidator() method only gets called after the data object is added to the relation. So the validation only takes place after the object is written and if you hit the save button again.
The text was updated successfully, but these errors were encountered: