Added Voiceplan, Admin IVT product matcher and Voicenumber update
updates number in ContractConfig
This commit is contained in:
@@ -330,7 +330,6 @@ class ProductController extends mfBaseController {
|
||||
|
||||
private function findProductApi() {
|
||||
$search = trim($this->request->q);
|
||||
$autocomplete = $this->request->autocomplete;
|
||||
|
||||
$products = [];
|
||||
|
||||
@@ -341,8 +340,8 @@ class ProductController extends mfBaseController {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$products = array_merge($products, ProductModel::search(["active" => 1, "name%" => $search]));
|
||||
$wild_search = implode("%", explode(" ", $search));
|
||||
$products = array_merge($products, ProductModel::search(["active" => 1, "name%" => $wild_search]));
|
||||
|
||||
if(!is_array($products) && !count($products)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user