Compensatory bug in conditional parameters that was revealed by previous

commit.
This commit is contained in:
James Taylor
2008-07-31 20:49:06 -04:00
parent 3221a71df3
commit 61caa7ea18
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -57,9 +57,9 @@ jQuery( function() {
#set group_state = $tool_state[$input.name]
#set group_errors = $errors.get( $input.name, {} )
#set current_case = $group_state['__current_case__']
#set prefix = $prefix + $input.name + "|"
$row_for_param( $prefix, $input.test_param, $group_state, $group_errors, $context )
$do_inputs( $input.cases[$current_case].inputs, $group_state, $group_errors, $prefix, $context )
#set group_prefix = $prefix + $input.name + "|"
$row_for_param( $group_prefix, $input.test_param, $group_state, $group_errors, $context )
$do_inputs( $input.cases[$current_case].inputs, $group_state, $group_errors, $group_prefix, $context )
#else
$row_for_param( $prefix, $input, $tool_state, $errors, $context )
#end if
+3 -3
View File
@@ -23,10 +23,10 @@
%elif input.type == "conditional":
<% group_values = values[input.name] %>
<% current_case = group_values['__current_case__'] %>
<% prefix = prefix + input.name + "|" %>
<% group_prefix = prefix + input.name + "|" %>
<% group_errors = errors.get( input.name, {} ) %>
${row_for_param( input.test_param, group_values[ input.test_param.name ], group_errors, prefix )}
${do_inputs( input.cases[ current_case ].inputs, group_values, group_errors, prefix )}
${row_for_param( input.test_param, group_values[ input.test_param.name ], group_errors, group_prefix )}
${do_inputs( input.cases[ current_case ].inputs, group_values, group_errors, group_prefix )}
%else:
${row_for_param( input, values[ input.name ], errors, prefix )}
%endif