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

Commit

Permalink
Merge pull request #29 from Krakozaber/patch-1
Browse files Browse the repository at this point in the history
Update GroupColumnsBehavior.php
  • Loading branch information
tonydspaniard authored Aug 21, 2017
2 parents feabd59 + b8abe67 commit fe039e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/behaviors/GroupColumnsBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public function renderTableRow($model, $key, $index)
$cells = [];
/** @var \yii\grid\Column $column */
foreach ($grid->columns as $column) {
$name = ArrayHelper::getValue($column, 'attribute');
$name = property_exists($column, 'attribute') ? ArrayHelper::getValue($column, 'attribute') : '' ;

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

Expand Down

0 comments on commit fe039e9

Please sign in to comment.