From b469998b95e33b171202d787dda796f7c38b96a2 Mon Sep 17 00:00:00 2001 From: Laetitia Fesselier Date: Wed, 26 Apr 2023 14:19:30 -0400 Subject: [PATCH] [Instrument] ControlpanelDeleteInstrumentData bug fix --- modules/instruments/php/module.class.inc | 6 ++++++ webpack.config.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/instruments/php/module.class.inc b/modules/instruments/php/module.class.inc index b09a42f2e38..bec36ecf563 100644 --- a/modules/instruments/php/module.class.inc +++ b/modules/instruments/php/module.class.inc @@ -50,6 +50,12 @@ class Module extends \Module public function handle(ServerRequestInterface $request) : ResponseInterface { $resp = parent::handle($request); + + /* Bypass for js files. */ + if ($this->hasPrefix('/js/', $request->getURI())) { + return $resp; + } + if ($resp->getStatusCode() != 404) { return $resp; } diff --git a/webpack.config.js b/webpack.config.js index 869394fc742..3e9af4db2be 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -320,7 +320,7 @@ const lorisModules = { imaging_qc: ['imagingQCIndex'], server_processes_manager: ['server_processes_managerIndex'], statistics: ['WidgetIndex'], - instruments: ['CandidateInstrumentList'], + instruments: ['CandidateInstrumentList', 'ControlpanelDeleteInstrumentData'], candidate_profile: ['CandidateInfo'], api_docs: ['swagger-ui_custom'], };