From 99a9e8403bad37b59bb04b03c3ac3ccf97b87e3a Mon Sep 17 00:00:00 2001 From: ovm58 Date: Thu, 5 Sep 2019 17:47:24 -0300 Subject: [PATCH] Grocery_crud_model.php Fix of a bug if the table column are ambiguous. --- application/models/Grocery_crud_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Grocery_crud_model.php b/application/models/Grocery_crud_model.php index 24930055..90ca4267 100755 --- a/application/models/Grocery_crud_model.php +++ b/application/models/Grocery_crud_model.php @@ -162,12 +162,12 @@ function or_having($key, $value = NULL, $escape = TRUE) function like($field, $match = '', $side = 'both') { - $this->db->like($field, $match, $side); + $this->db->like($this->table_name.'.'.$field, $match, $side); } function or_like($field, $match = '', $side = 'both') { - $this->db->or_like($field, $match, $side); + $this->db->or_like($this->table_name.'.'.$field, $match, $side); } function limit($value, $offset = '')