From 47c6c6671d4a1eb85fd63f9611e89b1186809f80 Mon Sep 17 00:00:00 2001
From: felmer <franz-josef.elmer@id.ethz.ch>
Date: Mon, 20 May 2019 11:26:24 +0200
Subject: [PATCH] SSDM-8307: fixing the bug my making
 ServerFacade.getV3SampleAsV1() and ServerFacade.searchSamplesV1replacement()
 project sample aware.

---
 .../1/as/webapps/eln-lims/html/js/server/ServerFacade.js        | 2 ++
 1 file changed, 2 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 4f792823e08..d07f3dbe601 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
@@ -1442,6 +1442,7 @@ function ServerFacade(openbisServer) {
 		v1Sample["permId"] = (v3Sample.permId)?v3Sample.permId.permId:null;
 		v1Sample["code"] = v3Sample.code;
 		v1Sample["identifier"] = (v3Sample.identifier)?v3Sample.identifier.identifier:null;
+		v1Sample["projectCode"] = (v3Sample.project) ? v3Sample.project.code : null;
 		v1Sample["experimentIdentifierOrNull"] = (v3Sample.experiment)?v3Sample.experiment.identifier.identifier:null;
 		v1Sample["sampleTypeCode"] = (v3Sample.type)?v3Sample.type.code:null;
 		v1Sample["properties"] = v3Sample.properties;
@@ -1789,6 +1790,7 @@ function ServerFacade(openbisServer) {
             fetchOptions.withType();
             fetchOptions.withRegistrator();
             fetchOptions.withModifier();
+            fetchOptions.withProject();
             fetchOptions.withExperiment();
             if(fechOptions["withProperties"]) {
             		fetchOptions.withProperties();
-- 
GitLab