diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue index 2daece725..46b6a4afc 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue @@ -217,7 +217,7 @@ export default { data = { "type": "thirdparty", "kind": "child", - "name": data.name, + "name": data.text, "isChild": true, "parent": {"type": "thirdparty", "id": this.parent.id}, "civility": {"id": data.civility}, diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Resources/ResourceItem.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Resources/ResourceItem.vue index edd90f262..547fd0855 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Resources/ResourceItem.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Resources/ResourceItem.vue @@ -159,10 +159,10 @@ export default { .catch((error) => { if (error.name === 'ValidationException') { for (let v of error.violations) { - this.$toast.open({message: v }); + this.$toast.open({message: v }); } } else { - this.$toast.open({message: 'An error occurred'}); + this.$toast.open({message: 'An error occurred'}); } }) } @@ -180,10 +180,10 @@ export default { .catch((error) => { if (error.name === 'ValidationException') { for (let v of error.violations) { - this.$toast.open({message: v }); + this.$toast.open({message: v }); } } else { - this.$toast.open({message: 'An error occurred'}); + this.$toast.open({message: 'An error occurred'}); } }) } diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js index 4f8b3e00f..9591d4733 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js @@ -437,23 +437,23 @@ let initPromise = (root) => Promise.all([getScopesPromise(root), accompanyingCou body.gender = payload.data.gender; console.log('id', payload.data.id, 'and body', body); patchPerson(payload.data.id, body) - .then(person => new Promise((resolve, reject) => { - console.log('patch person', person); - commit('updatePerson', { target: payload.target, person: person }); - resolve(); - })); + .then(person => new Promise((resolve, reject) => { + console.log('patch person', person); + commit('updatePerson', { target: payload.target, person: person }); + resolve(); + })); } else if (payload.type === 'thirdparty') { - body.name = payload.data.name; + body.name = payload.data.text; body.email = payload.data.email; body.telephone = payload.data.phonenumber; body.address = { id: payload.data.address.address_id }; console.log('id', payload.data.id, 'and body', body); patchThirdparty(payload.data.id, body) - .then(thirdparty => new Promise((resolve, reject) => { - console.log('patch thirdparty', thirdparty); - commit('updateThirdparty', { target: payload.target, thirdparty: thirdparty }); - resolve(); + .then(thirdparty => new Promise((resolve, reject) => { + console.log('patch thirdparty', thirdparty); + commit('updateThirdparty', { target: payload.target, thirdparty: thirdparty }); + resolve(); })); } }, diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeThirdParty.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeThirdParty.vue index e79b43073..13574a8b6 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeThirdParty.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeThirdParty.vue @@ -2,7 +2,7 @@