diff options
author | JakobDev <jakobdev@gmx.de> | 2023-09-28 14:16:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 20:16:40 +0800 |
commit | 1c039b4e1e57f31caea9c873e4f9c79300ddb344 (patch) | |
tree | da2e23090b2b3ca4b0d79223eb036dbfddf2b446 /services | |
parent | 1f00bc44b276cd3fcb1e880e9b1de90c9bb89e83 (diff) | |
download | gitea-1c039b4e1e57f31caea9c873e4f9c79300ddb344.tar.gz gitea-1c039b4e1e57f31caea9c873e4f9c79300ddb344.zip |
Fix Bug in Issue Config when only contact links are set (#26521)
Blank Issues should be enabled if they are not explicit disabled through
the `blank_issues_enabled` field of the Issue Config. The Implementation
has currently a Bug: If you create a Issue Config file with only
`contact_links` and without a `blank_issues_enabled` field,
`blank_issues_enabled` is set to false by default.
The fix is only one line, but I decided to also improve the tests to
make sure there are no other problems with the Implementation.
This is a bugfix, so it should be backported to 1.20.
Diffstat (limited to 'services')
-rw-r--r-- | services/issue/template.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/issue/template.go b/services/issue/template.go index 4f1e3d93a0..b6ae077987 100644 --- a/services/issue/template.go +++ b/services/issue/template.go @@ -72,7 +72,7 @@ func GetTemplateConfig(gitRepo *git.Repository, path string, commit *git.Commit) return GetDefaultTemplateConfig(), err } - issueConfig := api.IssueConfig{} + issueConfig := GetDefaultTemplateConfig() if err := yaml.Unmarshal(configContent, &issueConfig); err != nil { return GetDefaultTemplateConfig(), err } |