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

@ -764,10 +764,6 @@ class ActiveField extends Component
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;
}