From 6f473b7cb1375ad34f34e9ba1c129174024e68fb Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Wed, 22 Jun 2016 11:35:09 +0000
Subject: [PATCH] SSDM-3733 : Exports form, ongoing work, bugfix, showing only
 available samples.

SVN: 36733
---
 .../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 88c3fe233f6..cfefe1dd316 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
@@ -828,6 +828,16 @@ function ServerFacade(openbisServer) {
 						case "Attribute":
 							setAttributeCriteria(searchCriteria, fieldName, fieldValue);
 							break;
+						case "Sample":
+							switch(fieldNameType) {
+								case "PROP":
+									setPropertyCriteria(searchCriteria.withSample(), fieldName, fieldValue);
+									break;
+								case "ATTR":
+									setAttributeCriteria(searchCriteria.withSample(), fieldName, fieldValue);
+									break;
+							}
+							break;
 						case "Experiment":
 							switch(fieldNameType) {
 								case "PROP":
-- 
GitLab