]> git.mjollnir.org Git - moodle.git/commitdiff
small fix to disabledIf initiation
authorjamiesensei <jamiesensei>
Sat, 9 Dec 2006 11:45:24 +0000 (11:45 +0000)
committerjamiesensei <jamiesensei>
Sat, 9 Dec 2006 11:45:24 +0000 (11:45 +0000)
lib/form/datetimeselector.php

index 0badbb628185163f2cad1ab48b42db4a514fcecb..5aa7ba108ae2ba7cf844fb9083ae548d223c788b 100644 (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);