Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dashboard ignored system setting cache #21621

Merged
merged 18 commits into from
Nov 10, 2022
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix lint
lunny committed Nov 5, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 819a8cf0ea363ebc6302b61f0312374dde5ea3a7
3 changes: 1 addition & 2 deletions routers/web/admin/config.go
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ import (
"os"
"strings"

"code.gitea.io/gitea/models/system"
system_model "code.gitea.io/gitea/models/system"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
@@ -203,7 +202,7 @@ func ChangeConfig(ctx *context.Context) {
value := ctx.FormString("value")
version := ctx.FormInt("version")

if err := system_model.SetSetting(&system.Setting{
if err := system_model.SetSetting(&system_model.Setting{
SettingKey: key,
SettingValue: value,
Version: version,