gitea/templates/repo/diff
zeripath 03ba12aabf
Prevent NPE on commenting on lines with invalidated comments (#12549) (#12550)
* Prevent NPE on commenting on lines with invalidated comments

Only check for a review if we are replying to a previous review.

Prevent the NPE in #12239 by assuming that a comment without a Review is
non-pending.

Fix #12239

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add hack around to show the broken comments

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-08-21 10:52:20 +03:00
..
blob_excerpt.tmpl Fix and simplify some tmpl conditions (#11080) 2020-04-16 16:26:24 -05:00
box.tmpl Prevent NPE on commenting on lines with invalidated comments (#12549) (#12550) 2020-08-21 10:52:20 +03:00
comment_form.tmpl Fix comment box styling and cancelling (#11463) (#11464) (#11469) (#11467) 2020-05-18 10:17:35 +01:00
comment_form_datahandler.tmpl Pull request review/approval and comment on code (#3748) 2018-08-06 06:43:21 +02:00
comments.tmpl Fix to allow comment poster to edit or delete his own comments (#11671) (#11774) 2020-06-06 17:43:01 -04:00
compare.tmpl Allow compare page to look up base, head, own-fork, forkbase-of-head (#11327) 2020-05-12 08:52:46 +03:00
image_diff.tmpl Bugfix for image compare and minor improvements to image compare (#8289) 2019-10-04 15:58:54 -04:00
new_comment.tmpl Pull request review/approval and comment on code (#3748) 2018-08-06 06:43:21 +02:00
new_review.tmpl Fix submit review form (#11252) 2020-04-30 09:59:47 +08:00
options_dropdown.tmpl Support view individual commit for wiki pages (#11415) 2020-05-16 19:38:40 +03:00
section_unified.tmpl Prevent NPE on commenting on lines with invalidated comments (#12549) (#12550) 2020-08-21 10:52:20 +03:00
whitespace_dropdown.tmpl Add whitespace handling to PR-comparsion (#4683) 2018-08-14 13:49:33 -04:00