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 8a1d44b commit 7d045baCopy full SHA for 7d045ba
src/MultipleInputColumn.php
@@ -65,7 +65,7 @@ private function getInputNamePrefix()
65
{
66
$model = $this->widget->model;
67
if ($model instanceof Model) {
68
- if (count($this->renderer->columns) > 1 && $this->hasModelAttribute($this->name)) {
+ if (empty($this->renderer->columns) || (count($this->renderer->columns) == 1 && $this->hasModelAttribute($this->name))) {
69
return $model->formName();
70
}
71
return Html::getInputName($this->widget->model, $this->widget->attribute);
0 commit comments