Use ajax for Reference in New Issue #11436

Closed
opened 2025-11-02 09:37:33 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @yp05327 on GitHub (Aug 10, 2023).

Description

We are using form post when during the request of Reference in New Issue.
a370efc13f/templates/repo/issue/view_content/reference_issue_dialog.tmpl (L6)

But since #25258, we are going to use json response in the backend. so frontend should also make some changes or you will get this:
image

Gitea Version

latest

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?

build

Database

None

Originally created by @yp05327 on GitHub (Aug 10, 2023). ### Description We are using form post when during the request of `Reference in New Issue`. https://github.com/go-gitea/gitea/blob/a370efc13f0e1ea309e324639832832bc14cb6dc/templates/repo/issue/view_content/reference_issue_dialog.tmpl#L6 But since #25258, we are going to use json response in the backend. so frontend should also make some changes or you will get this: ![image](https://github.com/go-gitea/gitea/assets/18380374/5d0803b2-5ca4-48ac-9340-b720cb5686e6) ### Gitea Version latest ### 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? build ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:37:33 -06:00
Author
Owner

@CaiCandong commented on GitHub (Aug 10, 2023):

How to reproduce this problem? Can you give me detailed steps to reproduce it?

@CaiCandong commented on GitHub (Aug 10, 2023): How to reproduce this problem? Can you give me detailed steps to reproduce it?
Author
Owner

@CaiCandong commented on GitHub (Aug 10, 2023):

gitea

@CaiCandong commented on GitHub (Aug 10, 2023): ![gitea](https://github.com/go-gitea/gitea/assets/50507092/85d93059-966c-4a8e-8ed4-9cd76c1f3004)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11436