From 9a29532362cba6859a767eff00198c57e5d62c4d Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 9 Jun 2022 18:31:38 +0200 Subject: [PATCH] fix bux to quickly add names that exist of multiple parts to the namefield of a person or thirdparty --- .../Resources/public/vuejs/_components/OnTheFly/Person.vue | 4 ++-- .../public/vuejs/_components/OnTheFly/ThirdParty.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue index 732297bda..799bc3caf 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue @@ -333,10 +333,10 @@ export default { addQueryItem(field, queryItem) { switch (field) { case 'lastName': - this.person.lastName = queryItem; + this.person.lastName ? this.person.lastName += ` ${queryItem}` : this.person.lastName = queryItem; break; case 'firstName': - this.person.firstName = queryItem; + this.person.firstName ? this.person.firstName += ` ${queryItem}` : this.person.firstName = queryItem; break; } }, diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue index 85f09a9ed..0ea011dc4 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue @@ -297,7 +297,7 @@ export default { addQueryItem(field, queryItem) { switch (field) { case 'name': - this.thirdparty.name = queryItem; + this.thirdparty.name ? this.thirdparty.name += ` ${queryItem}` : this.thirdparty.name = queryItem; break; case 'firstName': this.thirdparty.firstname = queryItem;