Merge pull request #5443 from jmchilton/fix5117

[18.01] Don't silently fail rest of multi-action queue when attempting to purge a collection.
This commit is contained in:
Martin Cech
2018-02-19 19:14:57 -05:00
committed by GitHub
@@ -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);
}
}
});