Skip to content

Commit 14bda98

Browse files
author
Eugene Tupikov
committed
options passed to the widget are not overwritten anymore.
When using a widget extending InputWidget class, the options were not passed to the widget.
1 parent 68d29dc commit 14bda98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/BaseColumn.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private function normalize($name) {
229229
*/
230230
public function renderInput($name, $options)
231231
{
232-
$options = array_merge($this->options, $options);
232+
$options = Arrayhelper::merge($this->options, $options);
233233
$method = 'render' . Inflector::camelize($this->type);
234234
$value = $this->prepareValue();
235235

@@ -413,7 +413,7 @@ protected function renderWidget($type, $name, $value, $options)
413413
'value' => $value
414414
];
415415
}
416-
$options = array_merge($options, $widgetOptions);
416+
$options = ArrayHelper::merge($options, $widgetOptions);
417417
return $type::widget($options);
418418
}
419419

0 commit comments

Comments
 (0)