Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

Commit

Permalink
bug fix orderby
Browse files Browse the repository at this point in the history
  • Loading branch information
fherryfherry committed Feb 13, 2018
1 parent 8e080e2 commit 2f472ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/CBController.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public function getIndex() {
$orderby_table = explode(".",$k)[0];
$k = explode(".",$k)[1];
}else{
$orderby_table = $table;
$orderby_table = $this->table;
}
$result->orderby($orderby_table.'.'.$k,$v);
}
Expand All @@ -416,7 +416,7 @@ public function getIndex() {
if(strpos($k, '.')!==FALSE) {
$orderby_table = explode(".",$k)[0];
}else{
$orderby_table = $table;
$orderby_table = $this->table;
}
$result->orderby($orderby_table.'.'.$k,$v);
}
Expand Down

0 comments on commit 2f472ff

Please sign in to comment.