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;