From 68fa4970186c5d434f5ccee25f5b8d3661015add Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Mon, 25 Jan 2021 21:48:00 +0100
Subject: [PATCH] FIX: missing clause for parsing the xml of subselects with
 lists

---
 src/caosdb/common/models.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py
index a5adf6af..d857d5c9 100644
--- a/src/caosdb/common/models.py
+++ b/src/caosdb/common/models.py
@@ -3855,6 +3855,8 @@ def _parse_single_xml_element(elem):
     elif elem.tag.lower() == "value":
         if len(elem) == 1 and elem[0].tag.lower() == "emptystring":
             return ""
+        elif len(elem) == 1 and elem[0].tag.lower() in classmap:
+            return _parse_single_xml_element(elem[0])
         elif elem.text is None or elem.text.strip() == "":
             return None
 
-- 
GitLab