Skip to content

Commit 24158de

Browse files
committed
#70 replacing of the placeholder after preparing the content of row
1 parent 56d92b2 commit 24158de

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Yii2 multiple input change log
44
1.2.16 in development
55
---------------------
66

7+
- Bug #70: replacing of the placeholder after preparing the content of row
8+
79
1.2.15
810
------
911

src/renderers/TableRenderer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ private function renderRowContent($index = null, $item = null)
164164

165165
$content = Html::tag('tr', implode("\n", $cells), $this->prepareRowOptions($index, $item));
166166

167+
if ($index !== null) {
168+
$content = str_replace('{multiple_index}', $index, $content);
169+
}
170+
167171
return $content;
168172
}
169173

0 commit comments

Comments
 (0)