New repsitory dialog broken in v1.24.2 #14726

Closed
opened 2025-11-02 11:21:20 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @balporig on GitHub (Jul 8, 2025).

Description

New repository -> https://gitea.service/repo/create

Red banner on top:

JavaScript error: can't access property "disabled", t is null (https://gitea.service/assets/js/index.js?v=v1.24.2 @ 125:919). Open browser console to see more details.

console:

Uncaught TypeError: can't access property "disabled", t is null
    z repo-new.ts:30
    U_ repo-new.ts:58
    V_ repo-new.ts:98
    Yy repo-legacy.ts:50
    t5 init.ts:23
    <anonymous> index.ts:74
index.js:125:919
repo-new.ts:30:5

Gitea Version

v1.24.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker container

Database

PostgreSQL

Originally created by @balporig on GitHub (Jul 8, 2025). ### Description New repository -> https://gitea.service/repo/create Red banner on top: ```bash JavaScript error: can't access property "disabled", t is null (https://gitea.service/assets/js/index.js?v=v1.24.2 @ 125:919). Open browser console to see more details. ``` console: ```bash Uncaught TypeError: can't access property "disabled", t is null z repo-new.ts:30 U_ repo-new.ts:58 V_ repo-new.ts:98 Yy repo-legacy.ts:50 t5 init.ts:23 <anonymous> index.ts:74 index.js:125:919 repo-new.ts:30:5 ``` ### Gitea Version v1.24.2 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Docker container ### Database PostgreSQL
GiteaMirror added the issue/needs-feedbacktype/bug labels 2025-11-02 11:21:20 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jul 8, 2025):

repo-new.ts:30 is this: https://github.com/go-gitea/gitea/blob/v1.24.2/web_src/js/features/repo-new.ts#L30

The elSubmitButton is from:

The button should always be there.

Are you using custom templates? Or can you reproduce it by a clean official docker setup and/or how to reproduce?

@wxiaoguang commented on GitHub (Jul 8, 2025): `repo-new.ts:30` is this: https://github.com/go-gitea/gitea/blob/v1.24.2/web_src/js/features/repo-new.ts#L30 The `elSubmitButton` is from: * https://github.com/go-gitea/gitea/blob/v1.24.2/web_src/js/features/repo-new.ts#L9 * https://github.com/go-gitea/gitea/blob/v1.24.2/templates/repo/create.tmpl#L211 The button should always be there. Are you using custom templates? Or can you reproduce it by a clean official docker setup and/or how to reproduce?
Author
Owner

@balporig commented on GitHub (Jul 8, 2025):

Thank you, the issue was from custom template, closing

@balporig commented on GitHub (Jul 8, 2025): Thank you, the issue was from custom template, closing
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14726