diff --git a/public/modules/custom/asu_application/src/Entity/Application.php b/public/modules/custom/asu_application/src/Entity/Application.php index ff5a76875..ce0f9588f 100644 --- a/public/modules/custom/asu_application/src/Entity/Application.php +++ b/public/modules/custom/asu_application/src/Entity/Application.php @@ -92,7 +92,7 @@ public function getHasChildren(): bool { * Has children. */ public function hasNewPermitNumber(): bool { - $permitValue = $this->field_is_new_permit_number->value ?? FALSE; + $permitValue = $this->field_is_new_permit_number->value ?? TRUE; if ($permitValue || $permitValue == '1') { return FALSE; diff --git a/public/themes/custom/asuntotuotanto/templates/form/application/form--asu-application-haso-form.html.twig b/public/themes/custom/asuntotuotanto/templates/form/application/form--asu-application-haso-form.html.twig index 5a8844ac6..005083282 100644 --- a/public/themes/custom/asuntotuotanto/templates/form/application/form--asu-application-haso-form.html.twig +++ b/public/themes/custom/asuntotuotanto/templates/form/application/form--asu-application-haso-form.html.twig @@ -134,7 +134,7 @@
{{ element.field_right_of_residence_number }} - {{ element.field_is_new_permit_number }} + {# {{ element.field_is_new_permit_number }} #}