mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-10 23:17:08 -04:00
Fix exists by doing string comparison using like clause (#666)
This commit is contained in:
@@ -7,7 +7,7 @@ class Item extends CI_Model
|
||||
public function exists($item_id, $ignore_deleted = FALSE, $deleted = FALSE)
|
||||
{
|
||||
$this->db->from('items');
|
||||
$this->db->where('item_id', $item_id);
|
||||
$this->db->like('item_id', $item_id);
|
||||
if($ignore_deleted == FALSE)
|
||||
{
|
||||
$this->db->where('deleted', $deleted);
|
||||
|
||||
Reference in New Issue
Block a user