Skip to content

Commit

Permalink
fix(merger): approve housenumber when boxnumber is approved
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Nov 4, 2024
1 parent 7d020dd commit 4aacf64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/AddressRegistry/StreetName/StreetName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public void ApproveStreetName()

foreach (var address in StreetNameAddresses.ProposedStreetNameAddressesFromMunicipalityMerger.Where(x => x.IsBoxNumberAddress))
{
if (address.Parent!.Status != AddressStatus.Current)
{
address.Parent.Approve();
}

address.Approve();
}
}
Expand Down

0 comments on commit 4aacf64

Please sign in to comment.