diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-03-19 12:19:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 04:19:48 +0000 |
commit | 828701ff2de67e179e79c79e6b52e92e770df789 (patch) | |
tree | 530bdd985a948f53af1d4a59125e90e131b73521 /models/fixtures | |
parent | 0e183d81fc5283f9d2047472de580e4f04a046c1 (diff) | |
download | gitea-828701ff2de67e179e79c79e6b52e92e770df789.tar.gz gitea-828701ff2de67e179e79c79e6b52e92e770df789.zip |
Fix template error when comment review doesn't exist (#29888)
Fix #29885
Diffstat (limited to 'models/fixtures')
-rw-r--r-- | models/fixtures/comment.yml | 8 | ||||
-rw-r--r-- | models/fixtures/review.yml | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/models/fixtures/comment.yml b/models/fixtures/comment.yml index 17586caa21..74fc716180 100644 --- a/models/fixtures/comment.yml +++ b/models/fixtures/comment.yml @@ -75,3 +75,11 @@ content: "comment in private pository" created_unix: 946684811 updated_unix: 946684811 + +- + id: 9 + type: 22 # review + poster_id: 2 + issue_id: 2 # in repo_id 1 + review_id: 20 + created_unix: 946684810 diff --git a/models/fixtures/review.yml b/models/fixtures/review.yml index 7a88080068..ac97e24c2b 100644 --- a/models/fixtures/review.yml +++ b/models/fixtures/review.yml @@ -170,3 +170,12 @@ content: "review request for user15" updated_unix: 946684835 created_unix: 946684835 + +- + id: 20 + type: 22 + reviewer_id: 1 + issue_id: 2 + content: "Review Comment" + updated_unix: 946684810 + created_unix: 946684810 |