Skip to content

Commit

Permalink
add default values always to application request
Browse files Browse the repository at this point in the history
  • Loading branch information
rpnykanen committed May 16, 2022
1 parent e01728c commit 961f0ab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand All @@ -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;
}

Expand Down

0 comments on commit 961f0ab

Please sign in to comment.