We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 445b0b9 commit 902b06cCopy full SHA for 902b06c
src/components/BaseColumn.php
@@ -229,10 +229,12 @@ private function normalize($name) {
229
public function renderInput($name, $options)
230
{
231
if ($this->options instanceof \Closure) {
232
- $this->options = call_user_func($this->options, $this->getModel());
+ $optionsExt = call_user_func($this->options, $this->getModel());
233
+ } else {
234
+ $optionsExt = $this->options;
235
}
236
- $options = Arrayhelper::merge($this->options, $options);
237
+ $options = Arrayhelper::merge($optionsExt, $options);
238
$method = 'render' . Inflector::camelize($this->type);
239
$value = $this->prepareValue();
240
0 commit comments