-
Bug
-
Resolution: Fixed
-
Blocker
-
3.0.3
-
PostgreSQL
-
MOODLE_30_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
-
External Database enrollment overwrites mnethostid value as it appears as if the expected parameter is param_boolean. This value however should be numeric.
My user object included an mnethostid of 4 but is replaced by 1 -> INCORRECT.
There may be a number of other fields which may not be valid.
I would likely use
PARAM_INT
To attempt, create a new user with a mnethost other than 0 or 1.
auth/db.auth.php -> clean_data function calls
/lib/classes/user.php get_property_definition calls
/lib/classes/user.php fill_properties_cache
A number of parameter types are incorrect causing the replacement for example of the menthostid value passed by the function.
- will be (partly) resolved by
-
MDL-52781 Improve core_user::fill_properties_cache()
- Closed