Skip to content

Commit 1316d35

Browse files
committed
Update Project at Mon Mar 27 09:53:24 +07 2023
1 parent 5af7cd9 commit 1316d35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hungng/HungNG_Custom_Based_model.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function build_order_result($order_by_field, $direction = 'desc', $field
331331
if (!empty($table)) {
332332
$tableName = trim($table) . '.';
333333
} else {
334-
$tableName = $this->tableName . '.';
334+
$tableName = '';
335335
}
336336
if ($table === 'order_by_field') {
337337
$tableName = '';
@@ -1065,15 +1065,15 @@ public function get_data_simple_result($select = '*', $wheres = array(), $size =
10651065
if (count($wheres) > 0) {
10661066
foreach ($wheres as $field => $value) {
10671067
if (is_array($value)) {
1068-
$this->db->where_in($this->tableName . '.' . $field, $value);
1068+
$this->db->where_in($field, $value);
10691069
} else {
1070-
$this->db->where($this->tableName . '.' . $field, $value);
1070+
$this->db->where($field, $value);
10711071
}
10721072
}
10731073
}
10741074
$this->page_limit($size, $page);
10751075
foreach ($orderBy as $key => $val) {
1076-
$this->db->order_by($this->tableName . '.' . $key, $val);
1076+
$this->db->order_by($key, $val);
10771077
}
10781078

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

0 commit comments

Comments
 (0)