Skip to content

Commit

Permalink
Small fix for paginated model collections
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrock committed Oct 12, 2015
1 parent 33319ce commit e635015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Column.php
Expand Up @@ -99,7 +99,7 @@ public function setOptionsFromModel($model)
return $this;
}

if($model->is_sortable && in_array($this->getField(), $model->getSortable()))
if (property_exists($model, 'is_sortable') && $model->is_sortable && in_array($this->getField(), $model->getSortable())) {
{
// The model dictates that this column should be sortable
$this->setSortable(true);
Expand Down

0 comments on commit e635015

Please sign in to comment.