diff --git a/Twitter/Bootstrap/Form/Horizontal.php b/Twitter/Bootstrap/Form/Horizontal.php index aa5c8e5..4667eab 100755 --- a/Twitter/Bootstrap/Form/Horizontal.php +++ b/Twitter/Bootstrap/Form/Horizontal.php @@ -55,6 +55,11 @@ public function __construct($options = null) $class = $htmlTagDecorator->getOption('class'); $htmlTagDecorator->setOption('class', "col-" . $this->_getColType() . "-offset-" . $this->_getLabelColSize() . " $class"); $element->addDecorator($htmlTagDecorator); + } elseif($element instanceof Zend_Form_Element_File) { + $decorators = $element->getDecorators(); + array_unshift($decorators, 'File'); + unset($decorators['Zend_Form_Decorator_ViewHelper']); + $element->setDecorators($decorators); } }