Revert "Fixes #17220: Fixed widgets with no options"

This reverts commit a7f98964151d5894d9862fb0a1bf80040de86b69.
This commit is contained in:
Alexander Makarov
2019-03-24 15:57:46 +03:00
parent a7f9896415
commit f7fcc0043e
2 changed files with 2 additions and 6 deletions

View File

@ -1,10 +1,10 @@
Yii Framework 2 Change Log Yii Framework 2 Change Log
========================== ==========================
2.0.17.1 under development 2.0.18 under development
------------------------ ------------------------
- Bug #17220: Fixed widgets with no options (samdark) - no changes in this release.
2.0.17 March 22, 2019 2.0.17 March 22, 2019

View File

@ -764,10 +764,6 @@ class ActiveField extends Component
public function widget($class, $config = []) public function widget($class, $config = [])
{ {
foreach ($this->inputOptions as $key => $value) { foreach ($this->inputOptions as $key => $value) {
if (!isset($config['options'])) {
$config['options'] = [];
}
if (!isset($config['options'][$key])) { if (!isset($config['options'][$key])) {
$config['options'][$key] = $value; $config['options'][$key] = $value;
} }