From 4dd564ddb2bc0671c2e3a0b03ba36c6b0fc48a54 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Sat, 9 Dec 2006 11:45:24 +0000 Subject: [PATCH] small fix to disabledIf initiation --- lib/form/datetimeselector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/form/datetimeselector.php b/lib/form/datetimeselector.php index 0badbb6281..5aa7ba108a 100644 --- a/lib/form/datetimeselector.php +++ b/lib/form/datetimeselector.php @@ -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); -- 2.39.5