From 7c7e492b6ca7ef2cd8f50cbf830a6678e3564a3f Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 15 Apr 2025 16:25:05 +0200 Subject: [PATCH] feat: refs #7868 added department.notificationEmail instead of user email --- src/pages/Customer/components/CustomerSamplesCreate.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pages/Customer/components/CustomerSamplesCreate.vue b/src/pages/Customer/components/CustomerSamplesCreate.vue index 1294a5d25..dfa944748 100644 --- a/src/pages/Customer/components/CustomerSamplesCreate.vue +++ b/src/pages/Customer/components/CustomerSamplesCreate.vue @@ -41,7 +41,6 @@ const sampleType = ref({ hasPreview: false }); const initialData = reactive({}); const entityId = computed(() => route.params.id); const customer = computed(() => useArrayData('Customer').store?.data); -const filterEmailUsers = { where: { userFk: user.value.id } }; const filterClientsAddresses = { include: [ { relation: 'province', scope: { fields: ['name'] } }, @@ -73,7 +72,7 @@ onBeforeMount(async () => { const setEmailUser = (data) => { optionsEmailUsers.value = data; - initialData.replyTo = data[0]?.email; + initialData.replyTo = data[0]?.notificationEmail; }; const setClientsAddresses = (data) => { @@ -182,10 +181,12 @@ const toCustomerSamples = () => {