-
Bug
-
Resolution: Deferred
-
Minor
-
None
-
3.1.4, 3.2.1, 3.7.3, 3.9.2
-
MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_37_STABLE, MOODLE_39_STABLE
-
MDL-57929_master
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.
- has a non-specific relationship to
-
MDL-66720 User is NOT forced to complete required custom user profile fields
- Closed
- 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
- will be (partly) resolved by
-
MDL-71051 Always use the same method to retrieve list of user profile fields
- Closed