- First commit to issue fork.
- π·π΄Romania bbu23
I have encountered a similar issue, but non-related to AJAX.
My problem seems to happen in
validateDatelist
and notvalueCallback
whenever a datelist field that does not have a default value has its access set to FALSE.IRL Example:
- Have a user entity that has a field_birthdate that uses date list
- The field_birthdate is required, and the user that I am testing with does not have a value set yet for that field
- Using the simple_pass_reset module, I intend to reset the user's password
- The simple user pass reset form is after all a User entity form where all fields except for the password fields have the #access set to FALSE.
- When attempting to change the password for this user, the form throws a validation error for the datelist field (birthdate) saying it's required even though the field is not visible.
- This does not happen for users that have the field_birthdate already set (default value present)As a quick fix, I've added an extra check to the
$input_exists
to also check if the field exists but it's not accessible. The existance of the input is verified by form state values which are present, so I don't know at the moment if the root cause is somewhere else or not.