Skip to content

Error assigning Issue to project (after the issue has been created) #25649

@lucas-labs

Description

@lucas-labs

Description

I'm getting an error when trying to assign issues to a project once the issue has already been created (it works if I assign the issue to the project while creating the issue).

That is, when trying to assign the issue to the project here:

image

The issue is reproducible in the Gitea demo (obviously, I can't see if the logs are the same, but I can't assign issues to projects there either)

Gitea Version

1.20.0+rc2-25-g1ddfe0313

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

https://gist.github.com/lucas-labs/9622960103e75e627439bbe2ffc83f47

Screenshots

No response

Git Version

git version 2.35.0.windows.1

Operating System

Windows 11

How are you running Gitea?

As a Windows Service from the gitea-1.20-windows-4.0-amd64.exe binary provided in the downlaods page.

Database

SQLite

Activity

Zettat123

Zettat123 commented on Jul 4, 2023

@Zettat123
Contributor

might be related to

oldProjectID := issue.Project.ID
if oldProjectID == projectID {
continue
}

added a commit that references this issue on Jul 4, 2023
ff140d4
added a commit that references this issue on Jul 4, 2023
6243432
added a commit that references this issue on Jul 4, 2023
5510ed3
locked as resolved and limited conversation to collaborators on Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @lucas-labs@Zettat123

      Issue actions

        Error assigning Issue to project (after the issue has been created) · Issue #25649 · go-gitea/gitea