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 }