mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
sort release attachments by name (#15008)
Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
parent
51ea8dd444
commit
5d57f4bcb8
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ func getReleaseAttachments(e Engine, rels ...*Release) (err error) {
|
|||
|
||||
// Select attachments
|
||||
err = e.
|
||||
Asc("release_id").
|
||||
Asc("release_id", "name").
|
||||
In("release_id", sortedRels.ID).
|
||||
Find(&attachments, Attachment{})
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue