mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Revert "Fixes #17220: Fixed widgets with no options"
This reverts commit a7f98964151d5894d9862fb0a1bf80040de86b69.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user