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:
Tim Hunt 2010-03-08 14:03:24 +00:00
parent 0dc303382f
commit 7c1b615060

View File

@ -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);