From bb93cb23a74699d5dad9278c9fe3b9601ca8c5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 11 Feb 2022 12:09:42 +0100 Subject: [PATCH] fix handling of address --- .../Resources/public/vuejs/OnTheFly/components/Create.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue index 24f69a9fe..35f7cd685 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue @@ -74,11 +74,13 @@ export default { case 'thirdparty': let data = this.$refs.castThirdparty.$data.thirdparty; data.name = data.text; - if (data.address !== undefined) { + /* + if (data.address !== undefined && data.address !== null) { data.address = { id: data.address.address_id } } else { data.address = null; } + */ return data; default: