From 38038eb3ada496533069ee53756477fb6516b59c Mon Sep 17 00:00:00 2001 From: liyuchun Date: Wed, 1 Dec 2021 15:12:44 +0800 Subject: [PATCH] * Fix bug #16956. --- module/mr/model.php | 1 + module/mr/view/view.html.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/module/mr/model.php b/module/mr/model.php index d3b0b9b392..4f9aed1a03 100644 --- a/module/mr/model.php +++ b/module/mr/model.php @@ -175,6 +175,7 @@ class mrModel extends model ->setDefault('needCI', 0) ->setDefault('editedBy', $this->app->user->account) ->setDefault('editedDate', helper::now()) + ->setIF($this->post->needCI == 0, 'jobID', 0) ->get(); $oldMR = $this->getByID($MRID); diff --git a/module/mr/view/view.html.php b/module/mr/view/view.html.php index c5c6367573..fa40b82729 100644 --- a/module/mr/view/view.html.php +++ b/module/mr/view/view.html.php @@ -147,6 +147,9 @@ + needCI):?> + createLink('job', 'view', "jobID={$MR->jobID}");?> +
compile->statusList[$MR->compileStatus], '_blank');?>
mr->noCompileJob;?>