diff --git a/extensions/yii/jui/InputWidget.php b/extensions/yii/jui/InputWidget.php index 0facfb9..7aae366 100644 --- a/extensions/yii/jui/InputWidget.php +++ b/extensions/yii/jui/InputWidget.php @@ -50,6 +50,9 @@ class InputWidget extends Widget if ($this->hasModel() && !isset($this->options['id'])) { $this->options['id'] = Html::getInputId($this->model, $this->attribute); } + if($this->hasModel() && !array_key_exists('id', $this->options)) { + $this->options['id'] = Html::getInputId($this->model, $this->attribute); + } parent::init(); }