Browse Source

Merge remote-tracking branch 'origin/master'

* origin/master:
  Update change log
  Add active id to options if input widget has a model fixes #1550
tags/2.0.0-beta
Antonio Ramirez 11 years ago
parent
commit
f03d85d963
  1. 3
      extensions/yii/jui/InputWidget.php

3
extensions/yii/jui/InputWidget.php

@ -50,6 +50,9 @@ class InputWidget extends Widget
if ($this->hasModel() && !isset($this->options['id'])) { if ($this->hasModel() && !isset($this->options['id'])) {
$this->options['id'] = Html::getInputId($this->model, $this->attribute); $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(); parent::init();
} }

Loading…
Cancel
Save