From 2471f3222f3306e18e82fd61702425909935291e Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 9 Oct 2007 23:17:26 +0000 Subject: [PATCH] This doesn't seem to break anything and probably fixes Dan's problem. --- lib/galaxy/tools/__init__.py | 4 ++-- templates/tool_form.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/galaxy/tools/__init__.py b/lib/galaxy/tools/__init__.py index 19036627367..2a4c0660e55 100644 --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -604,7 +604,7 @@ class Tool: any_group_errors = False # Check any removals before updating state for i in range( len( group_state ) ): - if input.name + "_" + str(i) + "_remove" in incoming: + if key + "_" + str(i) + "_remove" in incoming: del group_state[i] # Update state for i in range( len( group_state ) ): @@ -621,7 +621,7 @@ class Tool: else: group_errors.append( {} ) # Check for addition - if input.name + "_add" in incoming: + if key + "_add" in incoming: new_state = {} self.fill_in_new_state( trans, input.inputs, new_state, context ) group_state.append( new_state ) diff --git a/templates/tool_form.tmpl b/templates/tool_form.tmpl index 2d88eae4e7e..8febcda57d4 100644 --- a/templates/tool_form.tmpl +++ b/templates/tool_form.tmpl @@ -34,10 +34,10 @@ #end if
${input.title} ${i + 1}
$do_inputs( $input.inputs, $repeat_state[$i], $rep_errors, $prefix + $input.name + "_" + str(i) + "|", $context ) -
+
#end for -
+
#elif $input.type == "conditional" #set group_state = $tool_state[$input.name]