Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
4.0.12 (unreleased)
-------------------

- Nothing changed yet.
- Handle edge-case in @bandi-search-filters when a Bando does not have tipologia set.
[cekk]


4.0.11 (2024-09-05)
Expand Down
2 changes: 2 additions & 0 deletions src/design/plone/policy/restapi/bandi_search_filters/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def reply(self):

for brain in brains:
bando = brain.getObject()
if not bando.tipologia_bando:
continue
found = [x for x in tipologie if x["UID"] == bando.tipologia_bando]
if not found:
tipologie.append(
Expand Down
Loading