From 8ced0e975a7f2e36d84ef02b697b645564e79f63 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Wed, 12 Jun 2024 10:41:44 +0530 Subject: [PATCH] Removed non-required code for the lite display in the AdminCustomers --- controllers/admin/AdminCustomersController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index ae856b2df..bd9ffd404 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -509,9 +509,7 @@ class AdminCustomersControllerCore extends AdminController ); // if we add a customer via fancybox (ajax), it's a customer and he doesn't need to be added to the visitor and guest groups - if (Tools::isSubmit('addcustomer') && Tools::isSubmit('submitFormAjax') - || ($this->lite_display && !$this->object->id) - ) { + if (Tools::isSubmit('submitFormAjax')) { $visitor_group = Configuration::get('PS_UNIDENTIFIED_GROUP'); $guest_group = Configuration::get('PS_GUEST_GROUP'); foreach ($groups as $key => $g) {