From 07e372a7878a8ad603a4e9ffbfb39f0337a5011d Mon Sep 17 00:00:00 2001 From: jekkos Date: Mon, 21 Mar 2016 17:41:41 +0100 Subject: [PATCH] Properly fix for item search bug (remove duplicated rows due to left outer join) --- application/models/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Item.php b/application/models/Item.php index 5f01947d2..6ae9600ba 100644 --- a/application/models/Item.php +++ b/application/models/Item.php @@ -106,7 +106,7 @@ class Item extends CI_Model } // avoid duplicate entry with same name because of inventory reporting multiple changes on the same item in the same date range - //$this->db->group_by('items.name'); + $this->db->group_by('items.item_id'); // order by name of item $this->db->order_by('items.name', 'asc');