From b19d9ec4732af2378578c2cd1060e67ab6c0a679 Mon Sep 17 00:00:00 2001 From: carlossa Date: Thu, 16 May 2024 14:18:41 +0200 Subject: [PATCH 1/2] refs #6914 fix VnLocationCountry --- src/components/CreateNewPostcodeForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue index 064ad1631..25a61a0ca 100644 --- a/src/components/CreateNewPostcodeForm.vue +++ b/src/components/CreateNewPostcodeForm.vue @@ -134,7 +134,7 @@ const onProvinceCreated = async ({ name }, formData) => { :label="t('Country')" :options="countriesOptions" hide-selected - option-label="country" + option-label="name" option-value="id" v-model="data.countryFk" :rules="validate('postcode.countryFk')" -- 2.40.1 From 660577c9fee1a5e6c8fdd5f21fddc91726bc2aca Mon Sep 17 00:00:00 2001 From: carlossa Date: Thu, 16 May 2024 16:02:38 +0200 Subject: [PATCH 2/2] refs #6914 fix vnLocation workerCreate --- src/pages/Worker/WorkerCreate.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Worker/WorkerCreate.vue b/src/pages/Worker/WorkerCreate.vue index 85259c043..5d1d601ff 100644 --- a/src/pages/Worker/WorkerCreate.vue +++ b/src/pages/Worker/WorkerCreate.vue @@ -57,7 +57,7 @@ const onBankEntityCreated = (data) => { }; function handleLocation(data, location) { - const { town, postcode: code, provinceFk, countryFk } = location ?? {}; + const { town, code, provinceFk, countryFk } = location ?? {}; data.postcode = code; data.city = town; data.provinceFk = provinceFk; -- 2.40.1