Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: While creating an account from the book now tab, the admin was able to select visitor and guest groups after submitting the ajax form once with errors. #1069

Merged
merged 5 commits into from
Jul 2, 2024
2 changes: 1 addition & 1 deletion controllers/admin/AdminCustomersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ public function renderForm()
);

// 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')) {
if (Tools::isSubmit('submitFormAjax')) {
$visitor_group = Configuration::get('PS_UNIDENTIFIED_GROUP');
$guest_group = Configuration::get('PS_GUEST_GROUP');
foreach ($groups as $key => $g) {
Expand Down