From 2dbed4bd9759cbcc4acbe0864e81c7bf3f48b3de Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 3 Sep 2022 05:59:10 +0800 Subject: [PATCH] Fix the quick-submit for pending review comment (#20992) If there is only one "Add comment" button (when there are pending review comments), the quick-submit should submit the form with is_review=true even if the "Add comment" button is not really clicked. Close #20990 --- templates/repo/diff/comment_form.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/repo/diff/comment_form.tmpl b/templates/repo/diff/comment_form.tmpl index b3b211bdb3..9325c754ce 100644 --- a/templates/repo/diff/comment_form.tmpl +++ b/templates/repo/diff/comment_form.tmpl @@ -29,6 +29,8 @@ {{else}} {{if $.root.CurrentReview}} + {{/* if there is only one "Add comment" button, the quick-submit should submit the form with is_review=true even if the "Add comment" button is not really clicked */}} + {{else}}