Fix for reloading tools that have non-standard tool_ids/versions.

This commit is contained in:
Daniel Blankenberg
2015-11-10 11:58:17 -05:00
parent 39ff0e9d76
commit 30668fe534
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ class Admin( object ):
toolbox = self.app.toolbox
tool_id = None
if params.get( 'reload_tool_button', False ):
tool_id = params.get('tool_id', None)
tool_id = kwd.get( 'tool_id', None )
galaxy.queue_worker.send_control_task(trans.app, 'reload_tool', noop_self=True, kwargs={'tool_id': tool_id} )
message, status = trans.app.toolbox.reload_tool_by_id( tool_id)
return trans.fill_template( '/admin/reload_tool.mako',
+2 -2
View File
@@ -31,7 +31,7 @@ $().ready(function() {
<select name="tool_id">
%for val in toolbox.tool_panel_contents( trans ):
%if isinstance( val, Tool ):
<option value="${val.id}">${val.name|h}</option>
<option value="${val.id|h}">${val.name|h}</option>
%elif isinstance( val, ToolSection ):
<optgroup label="${val.name|h}">
<% section = val %>
@@ -41,7 +41,7 @@ $().ready(function() {
%if section_val.id == tool_id:
<% selected_str = " selected=\"selected\"" %>
%endif
<option value="${section_val.id}"${selected_str}>${section_val.name|h}</option>
<option value="${section_val.id|h}"${selected_str}>${section_val.name|h}</option>
%endif
%endfor
%endif