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 537cce4c2..061c9860b 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue @@ -232,13 +232,18 @@ export default { "name": data.text, "isChild": true, "parent": {"type": "thirdparty", "id": this.parent.id}, - "civility": {"id": data.civility}, - "profession": {"id": data.profession}, "comment": data.comment, "telephone": data.phonenumber, "email": data.email, "address": this.parent.address } + if ("civility" in data) { + Object.assign(data, {"civility": {"id": data.civility}} ) + } + if ("profession" in data) { + Object.assign(data, {"profession": {"id": data.profession}} ) + } + } else { type = this.$refs.castNew.radioType; data = this.$refs.castNew.castDataByType(); diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeThirdParty.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeThirdParty.vue deleted file mode 100644 index 13574a8b6..000000000 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons/TypeThirdParty.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - - -