From 41607c23bdca21144b5e33053d305beb36e832bc Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Sat, 19 Sep 2015 12:38:21 +0100 Subject: [PATCH] Fix to #161 when searching a Kit by name in Sales --- application/models/item_kit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/models/item_kit.php b/application/models/item_kit.php index 21a3cad2e..87cf8d9d4 100644 --- a/application/models/item_kit.php +++ b/application/models/item_kit.php @@ -155,7 +155,8 @@ class Item_kit extends CI_Model foreach($by_name->result() as $row) { - $suggestions[]='KIT ' . $row->item_kit_id . ' | ' . $row->name; + // do not touch the '|' otherwise the sale search will not fetch the kit + $suggestions[]='KIT ' . $row->item_kit_id . '|' . $row->name; } //only return $limit suggestions