From a87d365a09491045abf2f478c2774c0eeefb76b1 Mon Sep 17 00:00:00 2001 From: zenggang Date: Fri, 7 Jan 2022 03:03:44 +0000 Subject: [PATCH] * Fix bug#18277 --- module/mr/view/view.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/mr/view/view.html.php b/module/mr/view/view.html.php index 06954bb5a34..1e7ba4295a8 100644 --- a/module/mr/view/view.html.php +++ b/module/mr/view/view.html.php @@ -106,10 +106,10 @@
- approvalStatus != 'approved' or ($MR->compileID != 0 and $MR->compileStatus != 'success')) ? ' disabled' : ''; ?> + approvalStatus != 'approved' or (!empty($compile->id) and $compile->status != 'success')) ? ' disabled' : ''; ?> synced and $rawMR->state == 'opened' and !$rawMR->has_conflicts) common::printIcon('mr', 'accept', "mr=$MR->id", $MR, 'button', 'flow', 'hiddenwin', 'mergeButton btn', false, $acceptDisabled, $lang->mr->acceptMR);?> synced and $rawMR->state == 'opened'): ?> - has_conflicts or ($MR->compileID != 0 and $MR->compileStatus != 'success') or $MR->approvalStatus == 'approved'):?> + has_conflicts or (!empty($compile->id) and $compile->status != 'success') or $MR->approvalStatus == 'approved'):?> id&action=approve", $MR, 'button', 'ok', 'hiddenwin', 'mergeButton', true, 'disabled', $lang->mr->approve);?> id&action=approve", $MR, 'button', 'ok', 'hiddenwin', 'mergeButton btn iframe showinonlybody', true, '', $lang->mr->approve);?>