Browse Source

Fixes #795: do not generate form-control css class for file input as it would display an unneeded border.

tags/2.0.0-alpha
Qiang Xue 11 years ago
parent
commit
528f8c82f3
  1. 2
      framework/yii/widgets/ActiveField.php

2
framework/yii/widgets/ActiveField.php

@ -323,7 +323,9 @@ class ActiveField extends Component
*/
public function fileInput($options = array())
{
if ($this->inputOptions !== array('class' => 'form-control')) {
$options = array_merge($this->inputOptions, $options);
}
$this->parts['{input}'] = Html::activeFileInput($this->model, $this->attribute, $options);
return $this;
}

Loading…
Cancel
Save