Fix to #161 when searching a Kit by name in Sales

This commit is contained in:
FrancescoUK
2015-09-19 12:38:21 +01:00
parent a29b8c2a62
commit 41607c23bd

View File

@@ -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