From b98bfe566a088c7b7913b28883da14a0af12ffc8 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Wed, 2 Mar 2022 15:26:18 -0800 Subject: [PATCH] IO-1760 --- .../parts-order-modal.container.jsx | 7 ++++++- .../vendors-form/vendors-form.component.jsx | 14 ++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/client/src/components/parts-order-modal/parts-order-modal.container.jsx b/client/src/components/parts-order-modal/parts-order-modal.container.jsx index 28ac6c0d9..9e88647ee 100644 --- a/client/src/components/parts-order-modal/parts-order-modal.container.jsx +++ b/client/src/components/parts-order-modal/parts-order-modal.container.jsx @@ -196,6 +196,11 @@ export function PartsOrderModalContainer({ (item) => item.id === values.vendorid )[0]; + let vendorEmails = + matchingVendor && + matchingVendor.email && + matchingVendor.email.split(RegExp("[;,]")); + GenerateDocument( { name: isReturn @@ -206,7 +211,7 @@ export function PartsOrderModalContainer({ }, }, { - to: matchingVendor ? [matchingVendor.email] : null, + to: matchingVendor ? vendorEmails : null, replyTo: bodyshop.email, subject: isReturn ? Templates.parts_return_slip.subject diff --git a/client/src/components/vendors-form/vendors-form.component.jsx b/client/src/components/vendors-form/vendors-form.component.jsx index b52739788..3fe8374e6 100644 --- a/client/src/components/vendors-form/vendors-form.component.jsx +++ b/client/src/components/vendors-form/vendors-form.component.jsx @@ -109,12 +109,14 @@ export default function VendorsFormComponent({