From ffd02f86ca92737f5bd02adcdd1be5c467ed5534 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Tue, 29 Mar 2016 12:38:32 +0000
Subject: [PATCH] SSDM-3357 : Search on experiment for samples, bugfix.

SVN: 36025
---
 .../as/webapps/eln-lims/html/js/server/ServerFacade.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js
index 0deb737bc22..5dde2000fa8 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js
@@ -743,6 +743,16 @@ function ServerFacade(openbisServer) {
 						case "Attribute":
 							setAttributeCriteria(searchCriteria, fieldName, fieldValue);
 							break;
+						case "Experiment":
+							switch(fieldNameType) {
+								case "PROP":
+									setPropertyCriteria(searchCriteria.withExperiment(), fieldName, fieldValue);
+									break;
+								case "ATTR":
+									setAttributeCriteria(searchCriteria.withExperiment(), fieldName, fieldValue);
+									break;
+							}
+							break;
 						case "Parent":
 							switch(fieldNameType) {
 								case "PROP":
-- 
GitLab