From 7e25e2758684f7eedadd003c1f9f02b72e0a3b8a Mon Sep 17 00:00:00 2001 From: Mark Williams Date: Thu, 27 Nov 2025 12:47:53 +0000 Subject: [PATCH] LIMS-1975: Fix 'View Upstream' button for LigandFit pipeline --- api/src/Downstream/Type/LigandFit.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/src/Downstream/Type/LigandFit.php b/api/src/Downstream/Type/LigandFit.php index fb165959c..5f15a810f 100644 --- a/api/src/Downstream/Type/LigandFit.php +++ b/api/src/Downstream/Type/LigandFit.php @@ -56,6 +56,15 @@ function results() { $dat['MODEL_APPAID'] = $appaid; $dat['SOLUTIONS'] = json_decode($json_data); $dat['PARENTAUTOPROCPROGRAM'] = $this->process['PROCESSINGCOMMENTS']; + + $integrator = $this->_lookup_autoproc( + null, + $this->process['PARAMETERS']['scaling_id'] + ); + if ($integrator) { + $dat['PARENTAUTOPROCPROGRAM'] .= ' (' . $integrator['PROCESSINGPROGRAMS'] . ')'; + $dat['PARENTAUTOPROCPROGRAMID'] = $integrator['AUTOPROCPROGRAMID']; + } $results = new DownstreamResult($this); $results->data = $dat;