1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/ada35462ea04/ changeset: ada35462ea04 user: dannon date: 2012-04-20 17:16:14 summary: Fix heavy handed removal of PJAs when not using outputs. affected #: 1 file diff -r 600fbbf082c1efcf6bacfabd685ccb0c60d2f5f4 -r ada35462ea041bb7fa6de53035eaf615eda068fd static/scripts/galaxy.workflow_editor.canvas.js --- a/static/scripts/galaxy.workflow_editor.canvas.js +++ b/static/scripts/galaxy.workflow_editor.canvas.js @@ -492,8 +492,23 @@ // Using workflow outputs, or has existing pjas. Remove all PJAs and recreate based on outputs. $.each(this.nodes, function (k, node ){ if (node.type === 'tool'){ - node.post_job_actions = {}; - node_changed = true; + var node_changed = false; + if (node.post_job_actions == null){ + node.post_job_actions = {}; + node_changed = true; + } + var pjas_to_rem = []; + $.each(node.post_job_actions, function(pja_id, pja){ + if (pja.action_type == "HideDatasetAction"){ + pjas_to_rem.push(pja_id); + } + }); + if (pjas_to_rem.length > 0 && node == workflow.active_node) { + $.each(pjas_to_rem, function(i, pja_name){ + node_changed = true; + delete node.post_job_actions[pja_name]; + }); + } if (using_workflow_outputs){ $.each(node.output_terminals, function(ot_id, ot){ var create_pja = true; Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.