Skip to content

Commit

Permalink
Merge pull request #58 from nguyenanhung/v3.2.0-develop
Browse files Browse the repository at this point in the history
Update HungNG_Custom_Based_model
  • Loading branch information
nguyenanhung authored Sep 13, 2024
2 parents 1a0ab4c + 184e879 commit fd6535b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hungng/HungNG_Custom_Based_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1148,11 +1148,13 @@ public function get_data_simple_result(
}
}
}
$this->page_limit($size, $page);

foreach ($orderBy as $orderField => $orderDirection) {
$this->db->order_by($tableName . '.' . $orderField, $orderDirection);
}

$this->page_limit($size, $page);

return $this->db->get()->result();
}

Expand Down

0 comments on commit fd6535b

Please sign in to comment.