From c333b4d499d29500e5577a3e6f02f8a328baab73 Mon Sep 17 00:00:00 2001 From: Chongyi Zheng Date: Sat, 1 Oct 2022 09:07:05 -0400 Subject: [PATCH] Fix issue that `sync_on_commit` is not set (#21309) Fixes #21308. With the original frontend template `templates/repo/settings/options.tmpl`, the field `push_mirror_sync_on_commit` is always empty even when checkbox is checked. Removing `value` from the input tag seems to solve the issue, and will set `push_mirror_sync_on_commit: on` when the checkbox is checked. (I'm not familiar with the frontend logics Gitea is using, so I don't really understand the cause of it) --- templates/repo/settings/options.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 0214df4514..9030235e7c 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -221,7 +221,7 @@
- +