From 381690d7af14c4d92644ba8ffbc2f5534db68a8b Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Wed, 30 Sep 2015 12:59:23 +0000
Subject: [PATCH] SSDM-2495 : And more Polishing, bugfix on search by
 properties

SVN: 34760
---
 .../1/dss/reporting-plugins/newbrowserapi/script.py        | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py b/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py
index 1e1f7f408a6..e26a47ea371 100644
--- a/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py
+++ b/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py
@@ -553,9 +553,10 @@ def searchSamples(tr, parameters, tableBuilder, sessionId):
 	
 	#Properties
 	if properyKeyValueList is not None:
-		for propertyTypeCode in properyKeyValueList.keySet():
-			propertyValue = properyKeyValueList.get(propertyTypeCode);
-			criterion.withProperty(propertyTypeCode).thatEquals(propertyValue);
+		for keyValuePair in properyKeyValueList:
+			for propertyTypeCode in keyValuePair.keySet():
+				propertyValue = keyValuePair.get(propertyTypeCode);
+				criterion.withProperty(propertyTypeCode).thatEquals(propertyValue);
 	
 	#Sub queries
 	if sampleExperimentIdentifier is not None:
-- 
GitLab