From bd8318afe2ef5e6b30bb03e764d25a35d1194b97 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Thu, 26 Mar 2015 08:28:33 +0000
Subject: [PATCH] SSDM-1615 : Copy Parents working on the ELN (Bugfix).

SVN: 33747
---
 .../newbrowser/html/js/views/SampleForm/SampleFormController.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleForm/SampleFormController.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleForm/SampleFormController.js
index 62516485204..2a7911f9931 100644
--- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleForm/SampleFormController.js
+++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleForm/SampleFormController.js
@@ -275,9 +275,9 @@ function SampleFormController(mainController, mode, sample) {
 						if(newAnnotations[permId]) { //If existed already maintain it, probably has modifications
 							finalAnnotations[permId] = newAnnotations[permId];
 						} else {
-							annotatedSample["CONTAINED"] =  parentsReturned[pIdx].identifier;
 							finalAnnotations[permId] = annotatedSample;
 						}
+						finalAnnotations[permId]["CONTAINED"] =  parentsReturned[pIdx].identifier;
 					}
 				}
 			}
-- 
GitLab