summaryrefslogtreecommitdiff
path: root/system/db/config.go
diff options
context:
space:
mode:
authorSteve <nilslice@gmail.com>2016-12-22 23:12:59 -0800
committerGitHub <noreply@github.com>2016-12-22 23:12:59 -0800
commit5bde98ba1e2836de44c311b453ae9649deb685bd (patch)
treedbac01d4f6afb7473fabf6fbc9a649fc72a1a051 /system/db/config.go
parent02b396de26ca7f58b8e8134fbaa098f5af49b911 (diff)
parent29959dc55482b04388bc0c8a426650215ac3d5b2 (diff)
Merge pull request #25 from ponzu-cms/ponzu-dev
[core] Repeatable form input elements
Diffstat (limited to 'system/db/config.go')
-rw-r--r--system/db/config.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/db/config.go b/system/db/config.go
index 0e49307..ce76021 100644
--- a/system/db/config.go
+++ b/system/db/config.go
@@ -34,10 +34,11 @@ func SetConfig(data url.Values) error {
if data.Get(key) == "" {
data.Set(key, v[0])
- discardKeys = append(discardKeys, k)
} else {
data.Add(key, v[0])
}
+
+ discardKeys = append(discardKeys, k)
}
}