diff --git a/src/Controller/CAPI/CustomerWarrantyController.php b/src/Controller/CAPI/CustomerWarrantyController.php index 954116cf..59c30f62 100644 --- a/src/Controller/CAPI/CustomerWarrantyController.php +++ b/src/Controller/CAPI/CustomerWarrantyController.php @@ -422,6 +422,12 @@ class CustomerWarrantyController extends APIController } else { + // NOTE: behaviour has been changed. we now save customer details too + $cust->setFirstName($req->request->get('first_name')) + ->setLastName($req->request->get('last_name')) + ->setEmail($req->request->get('email')) + ->setPrivacyPromo($priv_promo) + ->setPhoneMobile($req->request->get('contact_num')); // only update privacy promo $cust->setPrivacyPromo($priv_promo); }