From d4aef9ceacdcce6a07876697f916ce1011fffd27 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 4 Oct 2021 12:29:27 -0400 Subject: [PATCH] Fix contact phones data when new contact is assigned --- tailbone/templates/custorders/create.mako | 3 ++- tailbone/views/custorders/orders.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tailbone/templates/custorders/create.mako b/tailbone/templates/custorders/create.mako index 2e7b8195..d5c6c4c9 100644 --- a/tailbone/templates/custorders/create.mako +++ b/tailbone/templates/custorders/create.mako @@ -857,6 +857,7 @@ that.orderPhoneNumber = response.data.phone_number that.orderEmailAddress = response.data.email_address that.contactProfileURL = response.data.contact_profile_url + that.contactPhones = response.data.contact_phones that.contactNotes = response.data.contact_notes }) }, @@ -871,7 +872,7 @@ break } } - this.otherPhoneNumber = this.existingPhoneUUID ? this.orderPhoneNumber : null + this.otherPhoneNumber = this.existingPhoneUUID ? null : this.orderPhoneNumber this.editPhoneNumberShowDialog = true }, diff --git a/tailbone/views/custorders/orders.py b/tailbone/views/custorders/orders.py index dcd22a44..b9eac443 100644 --- a/tailbone/views/custorders/orders.py +++ b/tailbone/views/custorders/orders.py @@ -393,6 +393,7 @@ class CustomerOrderView(MasterView): 'person_uuid': batch.person_uuid, 'phone_number': batch.phone_number, 'email_address': batch.email_address, + 'contact_phones': self.handler.get_contact_phones(batch), 'contact_notes': self.handler.get_contact_notes(batch), }