Skip to content

Commit

Permalink
Fix error display
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Jan 15, 2017
1 parent 6c4a4ce commit 9c9c4d2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/galaxy/scripts/mvc/tool/tool-form-composite.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ define([ 'utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view'
if ( response && response.err_data ) {
for ( var i in self.forms ) {
var form = self.forms[ i ];
var step_related_errors = response.err_data[ form.options.step_index ];
var step_related_errors = response.err_data[ form.model.get( 'step_index' ) ];
if ( step_related_errors ) {
var error_messages = form.data.matchResponse( step_related_errors );
for ( var input_id in error_messages ) {
Expand Down
9 changes: 4 additions & 5 deletions client/galaxy/scripts/mvc/workflow/workflow-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,11 +665,10 @@ define([
content.icon = WorkflowIcons[ node.type ];
content.cls = 'ui-portlet-narrow';
if ( node.type == 'tool' ) {
var options = content;
options.node = node;
options.workflow = this.workflow;
options.datatypes = this.datatypes;
form = new ToolForm.View( options );
content.node = node;
content.workflow = this.workflow;
content.datatypes = this.datatypes;
form = new ToolForm.View( content );
} else {
if ( content.inputs && content.inputs.length > 0 ) {
content.inputs.unshift({
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/tool/tool-form-composite.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/maps/mvc/workflow/workflow-view.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/mvc/tool/tool-form-composite.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/mvc/workflow/workflow-view.js

Large diffs are not rendered by default.

0 comments on commit 9c9c4d2

Please sign in to comment.