mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-02 16:35:19 +02:00
Allow adding multiple issues to a project (#17226)
Adds an option like for adding multiple issues to a milestone. Closes #17216
This commit is contained in:
parent
25a2000787
commit
cd0928f0e8
2 changed files with 32 additions and 0 deletions
|
@ -327,6 +327,20 @@ func issues(ctx *context.Context, milestoneID, projectID int64, isPullOption uti
|
|||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
if ctx.Repo.CanWriteIssuesOrPulls(ctx.Params(":type") == "pulls") {
|
||||
projects, _, err := models.GetProjects(models.ProjectSearchOptions{
|
||||
RepoID: repo.ID,
|
||||
Type: models.ProjectTypeRepository,
|
||||
IsClosed: util.OptionalBoolOf(isShowClosed),
|
||||
})
|
||||
if err != nil {
|
||||
ctx.ServerError("GetProjects", err)
|
||||
return
|
||||
}
|
||||
ctx.Data["Projects"] = projects
|
||||
}
|
||||
|
||||
ctx.Data["IssueStats"] = issueStats
|
||||
ctx.Data["SelLabelIDs"] = labelIDs
|
||||
ctx.Data["SelectLabels"] = selectLabels
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue