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 304b7c5a9..2de410129 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue @@ -215,7 +215,7 @@ export default { data = { "type": "thirdparty", "kind": "child", - "name": data.text, + "name": data.name, "isChild": true, "parent": {"type": "thirdparty", "id": this.parent.id}, "civility": {"id": data.civility}, @@ -234,7 +234,7 @@ export default { throw 'error with object type'; } } - // console.log('type', type, 'data', data) + console.log('type', type, 'data', data) // pass datas to parent this.$emit('saveFormOnTheFly', { type: type, data: data }); 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 43400d8eb..bf2bd0938 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js @@ -405,7 +405,7 @@ let initPromise = Promise.all([scopesPromise, accompanyingCoursePromise]) })); } else if (payload.type === 'thirdparty') { - body.name = payload.data.text; + body.name = payload.data.name; body.email = payload.data.email; body.telephone = payload.data.phonenumber; body.address = { id: payload.data.address.address_id }; 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 f0dddff8b..a8339efb4 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue @@ -84,7 +84,7 @@