Tickets / BUG-110
Released High BUG · OPENED 13 OCT 2026 · 3 REPLIES

Error on Admin Moto orders where the selected customer has more than one address.

SF Stephen Fuller · teclan Ltd
Public
Log in to upvote, comment, or submit your own tickets.
1. Create a new order in the admin, 2. select an existing customer that has more than one address 2 click on Continue to Shipping methoc. Expected Result: proceeed to selecting shipping method. Actual Result: error on page saying "The Address has already been taken". Installed packages: aerocommerce/core 0.61.1 aerocommerce/admin 1.62.2
png
Screenshot-From-2026-10-13-11-37-36.png
SF
11D AGO Stephen Fuller

Additional Information: Where it fails In ValidateBillingAddress.php:19, Aero loads the submitted billing_address.address_id. At ValidateBillingAddress.php:21, it rejects the request if that address is missing or its customer_id differs from the MOTO cart customer’s ID. It then reports Laravel’s generic validation.unique message at ValidateBillingAddress.php:23. This check is about address existence/ownership, not duplicate addresses. The address dropdown submits address.id as fields.address_id in AddressForm.vue:8. When the selected ID changes, the component copies the matching address fields at AddressForm.vue:348. When its address list changes, it only preselects an address if there is exactly one; it does not clear an ID that is no longer in the list at AddressForm.vue:355. The list comes from the selected customer through POST /admin/orders/set-customer in OrdersController.php:163. The formatter uses the address record’s database ID in FormatsAddress.php:9. Likely cause and diagnostic gap The validator proves that one of these is true when it fails: The submitted billing_address.address_id does not identify an address record. The address record’s customer_id differs from the ID currently stored on the MOTO cart. The source suggests stale form state is one possible cause: the address component does not clear an address ID when the available list changes. Submitted billing_address.address_id The loaded address’s id and customer_id The MOTO cart customer’s id The customer ID selected in the UI and returned by set-customer

SF
11D AGO Stephen Fuller

Issue no longer present if I roll back aerocommerce/admin to version 1.60.0

CP
Callum Payne Aero 10D AGO

Thanks for letting us know about this. The issue was caused by some changes to our `ProductPicker` component so I've reverted the troubling changes for now Released as `aerocommerce/admin: 1.62.4`

Log in to join the discussion.