Merge branch 'MDL-56323-30' of git://github.com/l-campbell/moodle into MOODLE_30_STABLE

This commit is contained in:
David Monllao
2016-11-02 13:12:29 +08:00
+1 -1
View File
@@ -205,7 +205,7 @@ class profile_field_base {
* @param moodleform $mform instance of the moodleform class
*/
public function edit_field_set_default($mform) {
if (!empty($default)) {
if (!empty($this->field->defaultdata)) {
$mform->setDefault($this->inputname, $this->field->defaultdata);
}
}