From caf687f2ffa47771b7e5d862dc1f034e248827d6 Mon Sep 17 00:00:00 2001 From: nguyenanhung Date: Mon, 27 Mar 2023 14:03:45 +0700 Subject: [PATCH] Update Binding at build_order_result --- hungng/HungNG_Custom_Based_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hungng/HungNG_Custom_Based_model.php b/hungng/HungNG_Custom_Based_model.php index 488955a..07b80b8 100644 --- a/hungng/HungNG_Custom_Based_model.php +++ b/hungng/HungNG_Custom_Based_model.php @@ -348,7 +348,7 @@ public function bind_order_result($order_by_field, $direction = 'desc', $field = public function build_order_result($order_by_field, $direction = 'desc', $field = 'id', $table = '') { if (!empty($table)) { - $tableName = trim($table) . '.'; + $tableName = $this->bindDBPrefix(trim($table)) . '.'; } else { $tableName = $this->bindDBPrefix($this->tableName) . '.'; }