Added Voiceplan, Admin IVT product matcher and Voicenumber update

updates number in ContractConfig
This commit is contained in:
Frank Schubert
2023-05-04 15:01:28 +02:00
parent a2b519f6f3
commit 8214acd3e9
42 changed files with 1975 additions and 207 deletions

View File

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