Skip to content

Commit

Permalink
handle expand
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Sep 30, 2024
1 parent 55a8201 commit 008b1f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/iosanita/policy/restapi/services/search_filters/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def get_sections(self):
for setting in self.get_data_from_registry(field_id="search_sections"):
items = []
for section_settings in setting.get("items") or []:
expand = section_settings.get("expand", False)
for link_item in section_settings.get("linkUrl") or []:
uid = ""
if isinstance(link_item, str):
Expand All @@ -62,7 +63,7 @@ def get_sections(self):
(section, self.request),
ISerializeToJsonSummary,
)()
if section_settings.get("expandItems", True):
if expand:
children = section.listFolderContents(
contentFilter={"portal_type": utils.getUserFriendlyTypes()}
)
Expand Down

0 comments on commit 008b1f3

Please sign in to comment.