This commit is contained in:
liyuchun
2021-12-01 15:12:44 +08:00
parent cfd5455a58
commit 38038eb3ad
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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);
+3
View File
@@ -147,6 +147,9 @@
<?php endif;?>
</tbody>
</table>
<?php elseif($MR->needCI):?>
<?php $compileUrl = $this->createLink('job', 'view', "jobID={$MR->jobID}");?>
<div class='text-center'><?php echo html::a($compileUrl, $lang->compile->statusList[$MR->compileStatus], '_blank');?></div>
<?php else:?>
<div class='text-center'><?php echo $lang->mr->noCompileJob;?></div>
<?php endif;?>