Browse Source
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>
tags/v1.15.0-dev
Norwin
3 years ago
No account linked to committer's email address
|
|
@@ -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 { |