Skip to content

Commit

Permalink
Don't fail rest of multi-action queue when attempting to purge a coll…
Browse files Browse the repository at this point in the history
…ection.

Fixes #5117.
  • Loading branch information
jmchilton committed Feb 13, 2018
1 parent aefe0e1 commit a90c636
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/galaxy/scripts/mvc/history/history-view-edit.js
Expand Up @@ -275,7 +275,12 @@ var HistoryViewEdit = _super.extend(
func: function() {
if (confirm(_l("This will permanently remove the data in your datasets. Are you sure?"))) {
var action = HDA_MODEL.HistoryDatasetAssociation.prototype.purge;
panel.getSelectedModels().ajaxQueue(action);
const historyContents = panel.getSelectedModels();
const selectedDatasets = historyContents.filter(
c =>
c.get("history_content_type") == "dataset"
)
historyContents.ajaxQueue(action, {}, selectedDatasets);
}
}
});
Expand Down

0 comments on commit a90c636

Please sign in to comment.