Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit fe039e9

Browse files
author
Antonio Ramirez
authored
Merge pull request #29 from Krakozaber/patch-1
Update GroupColumnsBehavior.php
2 parents feabd59 + b8abe67 commit fe039e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/behaviors/GroupColumnsBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public function renderTableRow($model, $key, $index)
277277
$cells = [];
278278
/** @var \yii\grid\Column $column */
279279
foreach ($grid->columns as $column) {
280-
$name = ArrayHelper::getValue($column, 'attribute');
280+
$name = property_exists($column, 'attribute') ? ArrayHelper::getValue($column, 'attribute') : '' ;
281281

282282
$isGroupColumn = in_array($name, $this->mergeColumns);
283283

0 commit comments

Comments
 (0)