Skip to content

Commit 2dbed4b

Browse files
authored
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
1 parent c8ded77 commit 2dbed4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/repo/diff/comment_form.tmpl

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
<input type="hidden" name="reply" value="{{$.reply}}">
3030
{{else}}
3131
{{if $.root.CurrentReview}}
32+
{{/* 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 */}}
33+
<input type="hidden" name="is_review" value="true">
3234
<button name="is_review" value="true" type="submit"
3335
class="ui submit green tiny button btn-add-comment">{{$.root.locale.Tr "repo.diff.comment.add_review_comment"}}</button>
3436
{{else}}

0 commit comments

Comments
 (0)