Skip to content

Commit

Permalink
fixed bill description column
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Aug 26, 2015
1 parent e1b936f commit 5145a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grid/BillGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function defaultColumns()
'attribute' => 'descr',
'format' => 'raw',
'value' => function ($model) {
return ArraySpoiler::widget(['data' => $model->descr]);
return strpos($model->descr, ',')===false ? $model->descr : ArraySpoiler::widget(['data' => $model->descr]);
},
],
];
Expand Down

0 comments on commit 5145a10

Please sign in to comment.