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
The form validator for Member edit form doesn't seem to work. This is likely a regression caused by CMS 5 upgrade. Possibly related to the introduction of getCMSCompositeValidator().
How to reproduce
navigate to the Security section of the CMS
click on the add new member button
you should see member edit form which is empty, do not input anything into the form
click save
Expected behaviour:
I expect to see validation message for at least FirstName and Email as defined in Member_Validator as those two fields are required.
Actual behaviour:
I don't see any validation message and the new user gets created with empty form fields.
Possible Solution
Manually adding the member validator to the composite validator remedies the issue:
Module version(s) affected
5.2.22
Description
The form validator for
Member
edit form doesn't seem to work. This is likely a regression caused by CMS 5 upgrade. Possibly related to the introduction ofgetCMSCompositeValidator().
How to reproduce
Expected behaviour:
I expect to see validation message for at least
FirstName
andEmail
as defined inMember_Validator
as those two fields are required.Actual behaviour:
I don't see any validation message and the new user gets created with empty form fields.
Possible Solution
Manually adding the member validator to the composite validator remedies the issue:
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)PRs
The text was updated successfully, but these errors were encountered: