Removed non-required code for the lite display in the AdminCustomers

This commit is contained in:
vishalsingh.qlo325
2024-06-12 10:41:44 +05:30
parent 640c530e5e
commit 8ced0e975a

View File

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