Commit f03d85d9 by Antonio Ramirez

Merge remote-tracking branch 'origin/master'

* origin/master: Update change log Add active id to options if input widget has a model fixes #1550
parents 4148912b a6cc6da4
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment