MDL-32787 user: rule required for custom profile fields applies to all users editing...
[moodle.git] / user / edit.php
index ca52ed3..7644861 100644 (file)
@@ -165,7 +165,8 @@ $user->imagefile = $draftitemid;
 //create form
 $userform = new user_edit_form(null, array(
     'editoroptions' => $editoroptions,
-    'filemanageroptions' => $filemanageroptions));
+    'filemanageroptions' => $filemanageroptions,
+    'userid' => $user->id));
 if (empty($user->country)) {
     // MDL-16308 - we must unset the value here so $CFG->country can be used as default one
     unset($user->country);