Skip to content

Commit 7e263be

Browse files
author
Eugene Tupikov
committed
check keys existence
1 parent 5da6114 commit 7e263be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/BaseColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function renderInput($name, $options, $contextParams = [])
331331
$method = 'render' . Inflector::camelize($this->type);
332332

333333
// @see https://github.com/unclead/yii2-multiple-input/issues/261
334-
if ($contextParams['index'] !== null) {
334+
if (isset($contextParams['index']) && isset($contextParams['indexPlaceholder'])) {
335335
$options = $this->replaceIndexPlaceholderInOptions($options, $contextParams['indexPlaceholder'], $contextParams['index']);
336336
}
337337

0 commit comments

Comments
 (0)