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 a04c68eaf..437b8be99 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue @@ -223,13 +223,11 @@ export default { default: if (typeof this.type === 'undefined') { // action=create or addContact - console.log('will rewrite data'); + // console.log('will rewrite data'); if (this.action === 'addContact') { type = 'thirdparty' data = this.$refs.castThirdparty.$data.thirdparty; - console.log('data original', data); - data.civility = data.civility ? {type: 'chill_main_civility', id: data.civility.id} : null; - data.profession = data.profession ? {type: 'third_party_profession', id: data.profession.id} : null; + // console.log('data original', data); data.parent = {type: "thirdparty", id: this.parent.id}; } else { type = this.$refs.castNew.radioType; 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 6086d75c3..c5e2ef378 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue @@ -70,14 +70,14 @@
@@ -264,10 +264,10 @@ export default { this.thirdparty.name = query; }, }, - mounted() { - let dependencies = []; - dependencies.push(this.loadProfessions()); - dependencies.push(this.loadCivilities()); + mounted() { + let dependencies = []; + dependencies.push(this.loadProfessions()); + dependencies.push(this.loadCivilities()); if (this.action !== 'create') { if (this.id) { dependencies.push(this.loadData());