small fix to disabledIf initiation

This commit is contained in:
jamiesensei
2006-12-09 11:45:24 +00:00
parent 11f260f4ee
commit 4dd564ddb2
+1 -1
View File
@@ -146,7 +146,7 @@ class MoodleQuickForm_date_time_selector extends MoodleQuickForm_group{
}
break;
case 'createElement':
if($this->_options['optional']) {
if($arg[2]['optional']) {
$caller->disabledIf($arg[0], $arg[0].'[off]', 'checked');
}
return parent::onQuickFormEvent($event, $arg, $caller);