Skip to content

Fix issue target branch selection for non-collaborators#36916

Open
fwag wants to merge 1 commit intogo-gitea:mainfrom
fwag:bugfix/fix-issue-ref-ui-v2
Open

Fix issue target branch selection for non-collaborators#36916
fwag wants to merge 1 commit intogo-gitea:mainfrom
fwag:bugfix/fix-issue-ref-ui-v2

Conversation

@fwag
Copy link

@fwag fwag commented Mar 17, 2026

This PR fixes a bug in the UI that prevented non-collaborator users (the issue poster or creator) from setting the target branch (ref) of an issue. The backend API already supports this, but the UI was rigidly disabling the dropdown based only on collaborator status.

Changes:

  • Enable the branch selector for the issue poster and during new issue creation.
  • Fix a typo (.IsIssueWriter -> .IsIssuePoster) that was preventing the reference update URL from being correctly set for posters.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 17, 2026
@github-actions github-actions bot added the modifies/templates This PR modifies the template files label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/templates This PR modifies the template files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants