diff options
author | Earl Warren <earl-warren@noreply.codeberg.org> | 2024-04-03 22:06:39 +0200 |
---|---|---|
committer | Earl Warren <earl-warren@noreply.codeberg.org> | 2024-04-03 22:06:39 +0200 |
commit | efd0f0f224cf10479ee1fc2cc6ee698208b636d7 (patch) | |
tree | 2152b09ab05a9d1889b190b52d7a7a77f724c12a /routers | |
parent | Merge pull request 'Better color for labels/counters' (#2935) from 0ko/forgej... (diff) | |
parent | Add integration test for (non-)archived label properties (diff) | |
download | forgejo-efd0f0f224cf10479ee1fc2cc6ee698208b636d7.tar.xz forgejo-efd0f0f224cf10479ee1fc2cc6ee698208b636d7.zip |
Merge pull request 'Port archived labels visual filter' (#2887) from 0ko/forgejo:lable-archive-bw into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2887
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/issue_label.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/routers/web/repo/issue_label.go b/routers/web/repo/issue_label.go index 9dedaefa4b..81bee4dbb5 100644 --- a/routers/web/repo/issue_label.go +++ b/routers/web/repo/issue_label.go @@ -13,7 +13,6 @@ import ( "code.gitea.io/gitea/modules/label" "code.gitea.io/gitea/modules/log" repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/web" "code.gitea.io/gitea/services/context" "code.gitea.io/gitea/services/forms" @@ -112,12 +111,11 @@ func NewLabel(ctx *context.Context) { } l := &issues_model.Label{ - RepoID: ctx.Repo.Repository.ID, - Name: form.Title, - Exclusive: form.Exclusive, - Description: form.Description, - Color: form.Color, - ArchivedUnix: timeutil.TimeStamp(0), + RepoID: ctx.Repo.Repository.ID, + Name: form.Title, + Exclusive: form.Exclusive, + Description: form.Description, + Color: form.Color, } if err := issues_model.NewLabel(ctx, l); err != nil { ctx.ServerError("NewLabel", err) |