Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 3.1.4, 3.2.1, 3.7.3, 3.9.2
-
Fix Version/s: None
-
Component/s: Authentication
Description
The profile_has_required_custom_fields_set introduced by MDL-46946 relies on a sql query to determine if there is some empty custom profile fields or not. Its base assumption is that a field is empty if and only if there is no value for it in {user_info_data}.
This assumption is not always true. Profile field plugins can override a function named is_empty() to instruct Moodle if a field is empty or not.
profile_has_required_custom_fields_set() should call is_empty() for each plugin.
It is possible that there is no value in {user_info_data} and yet the field is not empty. An example is the profilefield_associated plugin.
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-66720 User is NOT forced to complete required custom user profile fields
-
- Open
-
- has been marked as being related by
-
MDL-46946 user_not_fully_set_up() should force users to complete required custom user profile fields
-
- Closed
-
- is duplicated by
-
MDL-61417 missing redirection when an existing profile field is set to required
-
- Closed
-