Skip to content

Commit

Permalink
Revert "Fixes #17220: Fixed widgets with no options"
Browse files Browse the repository at this point in the history
This reverts commit a7f9896.
  • Loading branch information
samdark committed Mar 24, 2019
1 parent a7f9896 commit f7fcc00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions framework/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
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
Expand Down
4 changes: 0 additions & 4 deletions framework/widgets/ActiveField.php
Original file line number Diff line number Diff line change
Expand Up @@ -764,10 +764,6 @@ public function radioList($items, $options = [])
public function widget($class, $config = [])
{
foreach ($this->inputOptions as $key => $value) {
if (!isset($config['options'])) {
$config['options'] = [];
}

if (!isset($config['options'][$key])) {
$config['options'][$key] = $value;
}
Expand Down

0 comments on commit f7fcc00

Please sign in to comment.