mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-30 18:07:50 +01:00
Fix inconsistency with settings storage
This commit is contained in:
1 file changed
+1
-1
@@ -39,7 +39,7 @@ func (m *Model) LoadByName(name string) error {
|
|||||||
// Save will save this model to the DB
|
// Save will save this model to the DB
|
||||||
func (m *Model) Save() error {
|
func (m *Model) Save() error {
|
||||||
// ensure name is trimmed of whitespace
|
// ensure name is trimmed of whitespace
|
||||||
m.Name = strings.TrimSpace(m.Name)
|
m.Name = strings.ToLower(strings.TrimSpace(m.Name))
|
||||||
|
|
||||||
db := database.GetDB()
|
db := database.GetDB()
|
||||||
if result := db.Save(m); result.Error != nil {
|
if result := db.Save(m); result.Error != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user