From 2de0ea67151ed33369d5c1f6606ad2243a2b0e49 Mon Sep 17 00:00:00 2001 From: Mark Williams Date: Tue, 10 Jun 2025 21:29:57 +0100 Subject: [PATCH] LIMS-1777: Fix download of autoprocessing attachments on sm beamlines --- client/src/js/modules/dc/views/autoprocattachments.js | 2 +- client/src/js/modules/types/sm/dc/dc.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/js/modules/dc/views/autoprocattachments.js b/client/src/js/modules/dc/views/autoprocattachments.js index ec490ba7e..c37cecd5f 100644 --- a/client/src/js/modules/dc/views/autoprocattachments.js +++ b/client/src/js/modules/dc/views/autoprocattachments.js @@ -154,7 +154,7 @@ define(['marionette', var iCatProposalRootURL = this.getICatProposalRootUrl(proposalID); this.isIndustry = this.hasIndustryPrefix(proposalID); // ! FIXME: Naive check. - this.isPurgedSession = options.dcPurgedProcessedData !== "0"; + this.isPurgedSession = (options && options.dcPurgedProcessedData) ? (options.dcPurgedProcessedData !== "0") : false; var columns = [ { name: 'FILENAME', label: 'File', cell: 'string', editable: false }, diff --git a/client/src/js/modules/types/sm/dc/dc.js b/client/src/js/modules/types/sm/dc/dc.js index 7b7462837..a32aa8633 100644 --- a/client/src/js/modules/types/sm/dc/dc.js +++ b/client/src/js/modules/types/sm/dc/dc.js @@ -10,7 +10,7 @@ define([ loadAP: function(e) { if (!this.ap) { - this.ap = new DCAutoIntegrationView({ id: this.model.get('ID'), el: this.$el.find('div.autoproc') }) + this.ap = new DCAutoIntegrationView({ id: this.model.get('ID'), dcPurgedProcessedData: this.model.get('PURGEDPROCESSEDDATA'), el: this.$el.find('div.autoproc') }) } else this.ap.$el.slideToggle() }, })