Skip to content

Commit

Permalink
small fix to disabledIf initiation
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiesensei committed Dec 9, 2006
1 parent 11f260f commit 4dd564d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/form/datetimeselector.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function onQuickFormEvent($event, $arg, &$caller)
}
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);
Expand Down

0 comments on commit 4dd564d

Please sign in to comment.