mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
Fix #10217 for the case when there is hidden input combined with listview
This commit is contained in:
@@ -88,9 +88,11 @@ class Controller extends \yii\base\Controller
|
||||
$default = $this->$name;
|
||||
if (is_array($default)) {
|
||||
$this->$name = preg_split('/\s*,\s*/', $value);
|
||||
} else {
|
||||
} elseif ($default !== null) {
|
||||
settype($value, gettype($default));
|
||||
$this->$name = $value;
|
||||
} else {
|
||||
$this->$name = $value;
|
||||
}
|
||||
$this->_passedOptions[] = $name;
|
||||
unset($params[$name]);
|
||||
|
||||
Reference in New Issue
Block a user