Merge pull request #4726 from natefoo/panel-hidden-fix

[17.09] If the newest version of a tool is hidden, load the newest older version, if any, into the tool panel
This commit is contained in:
John Chilton
2017-10-02 09:46:47 -04:00
committed by GitHub
+3
View File
@@ -264,6 +264,9 @@ class AbstractToolBox(Dictifiable, ManagesIntegratedToolPanelMixin, object):
# See if a version of this tool is already loaded into the tool panel.
# The value of panel_component will be a ToolSection (if the value of
# section=True) or self._tool_panel (if section=False).
if tool.hidden:
log.debug("Skipping tool panel addition of hidden tool: %s, version: %s", tool.id, tool.version)
return
tool_id = str(tool.id)
tool = self._tools_by_id[tool_id]
log_msg = ""