From 961f0ab411bef49adafe953b21f8fd6bafe617b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Risto-Pekka=20Nyka=CC=88nen?= Date: Mon, 16 May 2022 16:08:13 +0300 Subject: [PATCH] add default values always to application request --- .../src/Api/BackendApi/Request/CreateApplicationRequest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/modules/custom/asu_api/src/Api/BackendApi/Request/CreateApplicationRequest.php b/public/modules/custom/asu_api/src/Api/BackendApi/Request/CreateApplicationRequest.php index dcdfdf3e2..2ee8753ef 100644 --- a/public/modules/custom/asu_api/src/Api/BackendApi/Request/CreateApplicationRequest.php +++ b/public/modules/custom/asu_api/src/Api/BackendApi/Request/CreateApplicationRequest.php @@ -56,6 +56,8 @@ public function toArray(): array { 'right_of_residence' => NULL, 'project_id' => $this->projectData['uuid'], 'apartments' => $this->getApartments(), + 'is_right_of_occupancy_housing_changer' => FALSE, + 'has_hitas_ownership' => FALSE, ]; if ($this->application->hasField('field_right_of_residence_number')) { @@ -69,7 +71,6 @@ public function toArray(): array { if ($this->application->hasField('hitas_owner')) { $values['has_hitas_ownership'] = $this->application->field_aso_changer->value ?? FALSE; } - return $values; }