-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.1
-
MOODLE_401_STABLE
-
MOODLE_402_STABLE, MOODLE_403_STABLE
-
MDL-78417-403 -
admin/tool/uploaduser/cli/uploaduser.php fails when custom profile field that is not required exists
- To reproduce add a custom profile checkbox field. Make it not required.
Then when you try to upload user csv file uploaduser.php reports an error:
Value for argument --profile_field_customfield is not valid. Allowed values: 0, 1
I also tried adding a "profile_field_customfield " column with a value of "0" to my csv but it still fails with the same error.
Here is csv data:
"username","firstName","lastName","email"
"fieldtest","fieldtest","fieldtest","fieldtest@fieldtest.au"
The value is "not required" so why am I being forced to set the value ????