From d5b7f53232e48e71ffb17a54c9dbd3ef041ad4d9 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 3 Aug 2023 20:01:41 +0530 Subject: [PATCH] Prevent deleted customer from search results --- controllers/admin/AdminCustomersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index b7078a0f1..f3c0a8a03 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -1085,7 +1085,7 @@ class AdminCustomersControllerCore extends AdminController foreach ($searches as $search) { if (!empty($search) && $results = Customer::searchByName($search, 50)) { foreach ($results as $result) { - if ($result['active']) { + if ($result['active'] && !$result['deleted']) { $customers[$result['id_customer']] = $result; } }