From 3fe3e8fd34bb8dd17b9b520459d2275f7d34a27c Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Mon, 17 Aug 2015 14:26:41 +0000
Subject: [PATCH] openBIS Bug bugfix

SVN: 34478
---
 .../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 49450cca6d5..2b7a020d67a 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
@@ -187,9 +187,10 @@ def updateDataSet(tr, parameters, tableBuilder):
 	metadata = parameters.get("metadata"); #java.util.LinkedHashMap<String, String> where the key is the name
 	dataSet = tr.getDataSetForUpdate(dataSetCode);
 	#Hack - Fix Sample Lost bug from openBIS, remove when SSDM-1979 is fix
-	sampleIdentifier = parameters.get("sampleIdentifier"); #String
-	dataSetSample = getSampleByIdentifierForUpdate(tr, sampleIdentifier);
-	dataSet.setSample(dataSetSample);
+	#In new openBIS versions if you set the already existing sample when doing a dataset update is deleted
+	#sampleIdentifier = parameters.get("sampleIdentifier"); #String
+	#dataSetSample = getSampleByIdentifierForUpdate(tr, sampleIdentifier);
+	#dataSet.setSample(dataSetSample);
 	#Assign Data Set properties
 	for key in metadata.keySet():
 		propertyValue = unicode(metadata[key]);
-- 
GitLab