From d9c49c1a729fa397540a8a30fdd256300adcdaef Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Wed, 23 Sep 2015 13:00:34 +0100 Subject: [PATCH] #132 revert a modification in item model --- application/models/item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/item.php b/application/models/item.php index f01f39adb..59b16e9da 100644 --- a/application/models/item.php +++ b/application/models/item.php @@ -61,7 +61,7 @@ class Item extends CI_Model { $this->db->where("(name LIKE '%" . $this->db->escape_like_str($search) . "%' OR " . "item_number LIKE '" . $this->db->escape_like_str($search) . "%' OR " . - "items.item_id LIKE '" . $this->db->escape_like_str($search) . "%' OR " . + $this->db->dbprefix('items').".item_id LIKE '" . $this->db->escape_like_str($search) . "%' OR " . "company_name LIKE '" . $this->db->escape_like_str($search) . "%' OR " . "category LIKE '%" . $this->db->escape_like_str($search) . "%')"); } @@ -130,7 +130,7 @@ class Item extends CI_Model { $this->db->where("(name LIKE '%" . $this->db->escape_like_str($search) . "%' OR " . "item_number LIKE '" . $this->db->escape_like_str($search) . "%' OR " . - "items.item_id LIKE '" . $this->db->escape_like_str($search) . "%' OR " . + $this->db->dbprefix('items').".item_id LIKE '" . $this->db->escape_like_str($search) . "%' OR " . "company_name LIKE '" . $this->db->escape_like_str($search) . "%' OR " . "category LIKE '%" . $this->db->escape_like_str($search) . "%')"); }