From 23ac2cc9f2400edcb21d705586e8a44fe8304e05 Mon Sep 17 00:00:00 2001
From: barillac <barillac>
Date: Mon, 6 Jul 2015 12:42:34 +0000
Subject: [PATCH] small fix

SVN: 34324
---
 .../1/dss/drop-boxes/add_plasmid_parents/add_plasmid_parents.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plasmid/source/core-plugins/weismigration/1/dss/drop-boxes/add_plasmid_parents/add_plasmid_parents.py b/plasmid/source/core-plugins/weismigration/1/dss/drop-boxes/add_plasmid_parents/add_plasmid_parents.py
index f3a6fd7e6ad..3905edd17e0 100644
--- a/plasmid/source/core-plugins/weismigration/1/dss/drop-boxes/add_plasmid_parents/add_plasmid_parents.py
+++ b/plasmid/source/core-plugins/weismigration/1/dss/drop-boxes/add_plasmid_parents/add_plasmid_parents.py
@@ -64,6 +64,8 @@ def update_sample_with_parents(tr, sample_dict):
           parents_code_list.append(plasmid_parent_id)
           print "P2", parents_code_list
           sample_for_update.setParentSampleIdentifiers(parents_code_list)
+        else:
+          sample_for_update.setParentSampleIdentifiers([plasmid_parent_id])            
       elif re.search ("pKW001", name): 
         plasmid_parent_id = "/MATERIALS/"+name.replace("pKW001","PKW1").strip()
         if not parents_code_list ==['']:
-- 
GitLab