From a1ab411e120ca6bd9bf18b1302c8e2be2bbfd4d0 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Tue, 14 May 2024 14:40:11 +0800 Subject: [PATCH] + Add actions block for mr diff page. --- module/mr/control.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/mr/control.php b/module/mr/control.php index ecffdefed4..e43388256c 100644 --- a/module/mr/control.php +++ b/module/mr/control.php @@ -452,11 +452,13 @@ class mr extends control $encoding = strtolower(str_replace('_', '-', $encoding)); /* Revert $config->requestFix in $encoding. */ $MR = $this->mr->fetchByID($MRID); - $this->view->title = $this->lang->mr->viewDiff; - $this->view->MR = $MR; + $this->view->title = $this->lang->mr->viewDiff; + $this->view->MR = $MR; + $this->view->compile = $this->loadModel('compile')->getById($MR->compileID); if($MR->synced) { $rawMR = $this->mr->apiGetSingleMR($MR->repoID, $MR->mriid); + $this->view->rawMR = $rawMR; if(!isset($rawMR->id) || empty($rawMR)) return $this->display(); }