mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:47:35 -04:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -29,6 +29,8 @@ | ||||
| 					<input type="hidden" name="reply" value="{{$.reply}}"> | ||||
| 				{{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 */}} | ||||
| 						<input type="hidden" name="is_review" value="true"> | ||||
| 						<button name="is_review" value="true" type="submit" | ||||
| 								class="ui submit green tiny button btn-add-comment">{{$.root.locale.Tr "repo.diff.comment.add_review_comment"}}</button> | ||||
| 					{{else}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user