diff --git a/CHANGES.rst b/CHANGES.rst index 1c1e35608b..e3a61e2b54 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,7 @@ Changelog 2.5.0 (unreleased) ------------------ +- #2422 Fix Maximum number of Iterations Exceeded when no catalogs set for AT type - #2421 Fix hanging sampletype listing view in setup - #2420 Fix page reload in multi results classic view - #2419 Check permission when automatic sample reception is enabled diff --git a/src/bika/lims/api/__init__.py b/src/bika/lims/api/__init__.py index 1f03d276c9..6e9fe1aa3f 100644 --- a/src/bika/lims/api/__init__.py +++ b/src/bika/lims/api/__init__.py @@ -1135,7 +1135,7 @@ def get_catalogs_for(brain_or_object, default=PORTAL_CATALOG): # AT content type # => Looup via archetype_tool archetype_tool = get_tool("archetype_tool") - catalogs = archetype_tool.catalog_map.get(portal_type) + catalogs = archetype_tool.catalog_map.get(portal_type) or [] else: # DX content type # => resolve the `_catalogs` attribute from the class