Skip to content

Commit d2f3993

Browse files
authored
Fix Maximum number of Iterations Exceeded when no catalogs set for AT type (#2422)
* Return list if catalog is not found instead of None * Changelog * Changelog
1 parent 3db39dd commit d2f3993

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.rst

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Changelog
44
2.5.0 (unreleased)
55
------------------
66

7+
- #2422 Fix Maximum number of Iterations Exceeded when no catalogs set for AT type
78
- #2421 Fix hanging sampletype listing view in setup
89
- #2420 Fix page reload in multi results classic view
910
- #2419 Check permission when automatic sample reception is enabled

src/bika/lims/api/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ def get_catalogs_for(brain_or_object, default=PORTAL_CATALOG):
11351135
# AT content type
11361136
# => Looup via archetype_tool
11371137
archetype_tool = get_tool("archetype_tool")
1138-
catalogs = archetype_tool.catalog_map.get(portal_type)
1138+
catalogs = archetype_tool.catalog_map.get(portal_type) or []
11391139
else:
11401140
# DX content type
11411141
# => resolve the `_catalogs` attribute from the class

0 commit comments

Comments
 (0)