Merge branch 'MDL-42138-27' of git://github.com/xow/moodle into MOODLE_27_STABLE

This commit is contained in:
David Monllao
2015-02-09 17:18:59 +08:00
+1 -1
View File
@@ -210,7 +210,7 @@ class profile_field_base {
*/
public function edit_field_set_required($mform) {
global $USER;
if ($this->is_required() && ($this->userid == $USER->id)) {
if ($this->is_required() && ($this->userid == $USER->id || isguestuser())) {
$mform->addRule($this->inputname, get_string('required'), 'required', null, 'client');
}
}