From 07952f7cabfc302253b754ea60736e4d2bcfbd51 Mon Sep 17 00:00:00 2001 From: Lunga Baliwe Date: Tue, 7 Nov 2023 21:44:03 +0200 Subject: [PATCH 1/3] Return list if catalog is not found instead of None --- src/bika/lims/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 34c66c4fdc81a92342aa76d96b3a760a55cb5454 Mon Sep 17 00:00:00 2001 From: Lunga Baliwe Date: Tue, 14 Nov 2023 10:56:30 +0200 Subject: [PATCH 2/3] Changelog --- CHANGES.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.rst b/CHANGES.rst index 1c1e35608b..ff6b67a08b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,7 @@ Changelog 2.5.0 (unreleased) ------------------ +- #2422 Return list if catalog is not found instead of None - #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 From d621400a74ff3ce8c79569c982c95bac80eaa9c6 Mon Sep 17 00:00:00 2001 From: Lunga Baliwe Date: Tue, 14 Nov 2023 19:59:16 +0200 Subject: [PATCH 3/3] Changelog --- CHANGES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index ff6b67a08b..e3a61e2b54 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,7 @@ Changelog 2.5.0 (unreleased) ------------------ -- #2422 Return list if catalog is not found instead of None +- #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