Merge branch 'MDL-88197-501' of https://github.com/paulholden/moodle into MOODLE_501_STABLE

This commit is contained in:
Huong Nguyen
2026-03-25 09:22:47 +07:00
@@ -81,6 +81,9 @@ class data_controller extends \core_customfield\data_controller {
if (!$this->get('id')) {
$mform->setDefault($elementname, $this->get_default_value());
}
if ($field->get_configdata_property('required')) {
$mform->addRule($elementname, null, 'required', null, 'client');
}
}
/**