Skip to content

Commit

Permalink
Small fix for determining column sortability
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrock committed Oct 16, 2015
1 parent eaf5e75 commit de157db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Column.php
Expand Up @@ -82,9 +82,7 @@ public function setOptionsFromModel($model)
return $this;
}

if (property_exists($model, 'is_sortable') && $model->is_sortable && in_array($this->getField(),
$model->getSortable())
) {
if ($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 de157db

Please sign in to comment.