summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorEarl Warren <contact@earl-warren.org>2024-04-25 16:23:12 +0200
committerEarl Warren <contact@earl-warren.org>2024-04-25 16:37:12 +0200
commit078229a5e458c850a9fff711b4ebb11c5ce61756 (patch)
treef2d62af31f4821b67c86e6b40f7e80dd5ede6820 /templates
parentMerge pull request 'Update dependency vitest to v1.5.1' (#3437) from renovate... (diff)
downloadforgejo-078229a5e458c850a9fff711b4ebb11c5ce61756.tar.xz
forgejo-078229a5e458c850a9fff711b4ebb11c5ce61756.zip
fix(ui): /settings/lfs/find 500 error
When in the repository settings, visiting - `LFS` to `/{owner}/{repo}/settings/lfs` - `Find pointer files` to `/{owner}/{repo}/settings/lfs/pointers` - `Find commits` to `/{owner}/{repo}/settings/lfs/find?oid=...` failed with an error 500 because of an incorrect evaluation of the template. Regression introduced by https://codeberg.org/forgejo/forgejo/commit/cbf923e87bca0f50c2c01a60ccf544b63c365e98 A test is added to visit the page and guard against future regressions. Refs: https://codeberg.org/forgejo/forgejo/issues/3438
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/settings/lfs_file_find.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/lfs_file_find.tmpl b/templates/repo/settings/lfs_file_find.tmpl
index 809a028b2c..54dbdb482b 100644
--- a/templates/repo/settings/lfs_file_find.tmpl
+++ b/templates/repo/settings/lfs_file_find.tmpl
@@ -23,9 +23,9 @@
<span class="text grey">{{svg "octicon-git-branch"}}{{.BranchName}}</span>
</td>
<td>
- {{if .ParentHashes}}
+ {{if .ParentIDs}}
{{ctx.Locale.Tr "repo.diff.parent"}}
- {{range .ParentHashes}}
+ {{range .ParentIDs}}
<a class="ui primary sha label" href="{{$.RepoLink}}/commit/{{.String}}">{{ShortSha .String}}</a>
{{end}}
{{end}}