From ec4821e857ce54399a0930d0d1d3854f89f5c9a4 Mon Sep 17 00:00:00 2001
From: imcovangent <I.vanGent@tudelft.nl>
Date: Tue, 24 Apr 2018 17:27:47 +0200
Subject: [PATCH] Bug fix in CMDOWS parameter saving with instances.

Former-commit-id: 990549d45e017d5e622bf3ce1af30cb5e56f08ed
---
 kadmos/graph/graph_kadmos.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kadmos/graph/graph_kadmos.py b/kadmos/graph/graph_kadmos.py
index 2f0d0d467..86ac775ac 100644
--- a/kadmos/graph/graph_kadmos.py
+++ b/kadmos/graph/graph_kadmos.py
@@ -1060,7 +1060,7 @@ class KadmosGraph(nx.DiGraph, EquationMixin, VistomsMixin):
             cmdows_parameter.add('instanceID', instance)
 
             if instance > 1:
-                cmdows_parameter.add('relatedInstanceUID', self.get_first_node_instance(self.nodes[graph_parameter]))
+                cmdows_parameter.add('relatedInstanceUID', self.get_first_node_instance(graph_parameter))
 
             else:
                 cmdows_parameter.add('description', self.nodes[graph_parameter].get('description'),
-- 
GitLab