Skip to content

Unable to generate repo if template has no Issue Labels #20654

Closed
@gabriel-vasile

Description

@gabriel-vasile

Description

To reproduce in web UI:

  1. create a repo and check "Mark repository as template"
  2. create another repo using the template in step 1. In "Template Items", check "Issue Labels" checkmark.

What I expected: step 2 creates a new, empty repo
What happened: status code 500, web/repo/repo.go:195:handleCreateError() [E] CreatePost: no element on slice when insert.

Gitea Version

 1.18.0+dev-209-g7a31292c2 built with GNU Make 4.3, go1.18 : bindata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

./gitea web

Database

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions