mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
* small fix #19530 * small fix #19530 | fix test * small fix #19530 | fix test * small fix #19530 | fix test * small fix #19530 | update CHANGELOG.md * Update framework/CHANGELOG.md Co-authored-by: viktor.shumeiko <viktor.shumeiko@simbirsoft.com> Co-authored-by: Alexey Rogachev <arogachev90@gmail.com>
This commit is contained in:
@ -4,6 +4,7 @@ Yii Framework 2 Change Log
|
||||
2.0.47 under development
|
||||
------------------------
|
||||
|
||||
- Bug #19530: Fix specifying the field id for `yii\widgets\ActiveField` (kv4nt)
|
||||
- Bug #12636: Fix CompareValidator successful state when compareAttribute has an error (manchenkoff)
|
||||
- Bug #15500: Fix saving empty records to MySQL (manchenkoff)
|
||||
- Bug #14388: Fixed fixture loading order in output message (manchenkoff)
|
||||
|
||||
@ -847,7 +847,7 @@ class ActiveField extends Component
|
||||
$options = [];
|
||||
|
||||
$inputID = $this->getInputId();
|
||||
$options['id'] = Html::getInputId($this->model, $this->attribute);
|
||||
$options['id'] = $inputID ?: Html::getInputId($this->model, $this->attribute);
|
||||
$options['name'] = $this->attribute;
|
||||
|
||||
$options['container'] = isset($this->selectors['container']) ? $this->selectors['container'] : ".field-$inputID";
|
||||
|
||||
Reference in New Issue
Block a user