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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user