Skip to content

Commit

Permalink
🐛 [#416] Handle empty selectielijstklasse on zaak
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm authored and svenvandescheur committed Nov 15, 2024
1 parent 5f0deec commit 3bf1089
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/src/openarchiefbeheer/destruction/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,11 @@ def _validate_action_zaak_with_type(
}
)

# If no selectielijstklasse is specified on the zaak, allow updating
# the archiefactiedatum manually
if not review_item.destruction_list_item.zaak.selectielijstklasse:
return

resultaat = self._get_selectielijst_resultaat(
review_item.destruction_list_item.zaak.selectielijstklasse
)
Expand Down

0 comments on commit 3bf1089

Please sign in to comment.