Skip to content

Commit 3b597af

Browse files
committed
Pass the model to embedded widget when prepare a template
1 parent 3d7e746 commit 3b597af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MultipleInputColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ protected function renderWidget($type, $name, $value, $options)
138138
// Extend options in case of rendering embedded MultipleInput
139139
// We have to pass to the widget an original model and an attribute to be able get a first error from model
140140
// for embedded widget.
141-
if ($type === MultipleInput::className() && strpos($name, $this->renderer->getIndexPlaceholder()) === false) {
141+
if ($type === MultipleInput::className()) {
142142
$model = $this->context->model;
143143

144144
// in case of embedding level 2 and more

0 commit comments

Comments
 (0)