-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Fix template error when comment review doesn't exist #29888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
41a40c0 to
2478e3d
Compare
|
This is a quick and dirty fix for the 500 panic error. The root problem is that the "review" could be delete, leaving the "comment" has a dangling Review field. I did some manual tests, it does resolve the 500 panic error. Compare by ignoring spaces: https://github.com/go-gitea/gitea/pull/29888/files?diff=unified&w=1 And added some tests (they fail on main branch): |
2478e3d to
c7612b9
Compare
c7612b9 to
19a5f81
Compare
19a5f81 to
dc0af2f
Compare
abd6f26 to
b4a3f2a
Compare
b4a3f2a to
d5b1ff0
Compare


Fix #29885