mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-32150 Libraries: checkbox controller will not check or uncheck freezed checkboxes
This commit is contained in:
parent
af8def57f6
commit
91f7f8c1c1
@ -100,7 +100,11 @@ YUI.add('moodle-form-checkboxcontroller', function(Y) {
|
||||
controllervaluenode.set('value', '1');
|
||||
newvalue = 'checked';
|
||||
}
|
||||
checkboxes.set('checked', newvalue);
|
||||
checkboxes.each(function(checkbox){
|
||||
if (!checkbox.get('disabled')) {
|
||||
checkbox.set('checked', newvalue);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1086,7 +1086,8 @@ abstract class moodleform {
|
||||
if (!is_null($contollerbutton) || is_null($selectvalue)) {
|
||||
foreach ($mform->_elements as $element) {
|
||||
if (($element instanceof MoodleQuickForm_advcheckbox) &&
|
||||
$element->getAttribute('class') == $checkboxgroupclass) {
|
||||
$element->getAttribute('class') == $checkboxgroupclass &&
|
||||
!$element->isFrozen()) {
|
||||
$mform->setConstants(array($element->getName() => $newselectvalue));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user