Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.3.1
-
None
-
None
-
MOODLE_23_STABLE
-
Description
When a new custom profile field is created under Moodle, it is possible to create some custom validation rules implementing the edit_validate_field() method.
At "login/signup_form.php" called by "login/signup.php" page, this method is not called for those fields which are configured to be shown at signup screen, which is the expected behavior.
Replication steps:
- Create a new custom profile field with some special validation behavior.
- Add this new custom profile field as a new user profile field under Moodle, set it as required, and set it to be shown under the signup page.
- Enable the signup enrolment method, and try to signup inputting some invalid values.
Expected result: The input will not be accepted.
Actual result: The input data will be accepted.