From a45f6fdf194558b3a864df635bf495e7bebe0859 Mon Sep 17 00:00:00 2001 From: BrewCurious Date: Mon, 23 Jan 2017 14:29:02 -0800 Subject: [PATCH] Adding function parameter to match the TimeField declaration --- code/CalendarTimeField.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/CalendarTimeField.php b/code/CalendarTimeField.php index b627d4e..e8d0674 100755 --- a/code/CalendarTimeField.php +++ b/code/CalendarTimeField.php @@ -1,8 +1,8 @@ 'text', 'class' => 'text' . ($this->extraClass() ? $this->extraClass() : ''), @@ -11,11 +11,11 @@ function Field() { 'value' => $this->attrValue(), 'tabindex' => $this->getTabIndex(), 'maxlength' => ($this->maxLength) ? $this->maxLength : null, - 'size' => ($this->maxLength) ? min( $this->maxLength, 30 ) : null + 'size' => ($this->maxLength) ? min( $this->maxLength, 30 ) : null ); - + if($this->disabled) $attributes['disabled'] = 'disabled'; - + return $this->createTag('input', $attributes); } -} \ No newline at end of file +}