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

This commit is contained in:
Huong Nguyen
2026-03-25 09:22:57 +07:00
@@ -74,6 +74,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');
}
}
/**