mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
formslib: MDL-21561 minor bug with disabled datetimeselectors.
Thanks for Matt Petro for finding this and suggesting the fix. I introduced this error when adding the calendar pop-up. Strangely, dateselector was not affected.
This commit is contained in:
parent
0dc303382f
commit
7c1b615060
@ -176,7 +176,7 @@ class MoodleQuickForm_date_time_selector extends MoodleQuickForm_group{
|
||||
$value['enabled'] = $requestvalue != 0;
|
||||
}
|
||||
} else {
|
||||
$value['enabled'] = isset($value['off']);
|
||||
$value['enabled'] = isset($value['enabled']);
|
||||
}
|
||||
if (null !== $value){
|
||||
$this->setValue($value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user