Skip to content

Commit

Permalink
Improve resilience of tool url building
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Jun 21, 2017
1 parent f7ba729 commit 268ee7f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
7 changes: 3 additions & 4 deletions client/galaxy/scripts/mvc/tool/tool-form-base.js
Expand Up @@ -70,10 +70,9 @@ define( [ 'utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view
build_url = Galaxy.root + 'api/jobs/' + options.job_id + '/build_for_rerun';
} else {
build_url = Galaxy.root + 'api/tools/' + options.id + '/build';
if ( Galaxy.params && Galaxy.params.tool_id == options.id ) {
build_data = $.extend( {}, Galaxy.params );
options.version && ( build_data[ 'tool_version' ] = options.version );
}
build_data = $.extend( {}, Galaxy.params );
build_data[ 'tool_id' ] = options.id;
options.version && ( build_data[ 'tool_version' ] = options.version );
}

// get initial model
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/tool/tool-form-base.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions static/scripts/bundled/analysis.bundled.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/analysis.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js.map

Large diffs are not rendered by default.

0 comments on commit 268ee7f

Please sign in to comment.