MDL-32787 user: rule required for custom profile fields applies to all users editing...
[moodle.git] / user / editadvanced.php
index 5226c0a..cdf03bd 100644 (file)
@@ -146,7 +146,8 @@ $user->imagefile = $draftitemid;
 //create form
 $userform = new user_editadvanced_form(null, array(
     'editoroptions' => $editoroptions,
-    'filemanageroptions' => $filemanageroptions));
+    'filemanageroptions' => $filemanageroptions,
+    'userid' => $user->id));
 $userform->set_data($user);
 
 if ($usernew = $userform->get_data()) {