From da5dd683d684901389336f96c55ae58837b9230e Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Tue, 25 Oct 2022 09:46:32 +0800 Subject: [PATCH] bugfix --- src/models/board.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/board.go b/src/models/board.go index f3dc7a15..a6dfd4e6 100644 --- a/src/models/board.go +++ b/src/models/board.go @@ -44,7 +44,7 @@ func (b *Board) CanRenameIdent(ident string) (bool, error) { return true, nil } - cnt, err := Count(DB().Model(b).Where("ident=? and id <> ?", b.Ident, b.Id)) + cnt, err := Count(DB().Model(b).Where("ident=? and id <> ?", ident, b.Id)) if err != nil { return false, err }