Skip to content

Commit d1f93c3

Browse files
authored
Update crud-columns.md in v7 to match v6 docs
1 parent 86319b1 commit d1f93c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

7.x-dev/crud-columns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ $this->crud->addColumn([
14981498
'attribute' => 'name', // foreign key attribute that is shown to user
14991499
'orderable' => true,
15001500
'orderLogic' => function ($query, $column, $columnDirection) {
1501-
return $query->leftJoin('categories', 'categories.id', '=', 'articles.select')
1501+
return $query->leftJoin('categories', 'categories.id', '=', 'articles.category_id')
15021502
->orderBy('categories.name', $columnDirection)->select('articles.*');
15031503
}
15041504
]);

0 commit comments

Comments
 (0)