bugfix
This commit is contained in:
parent
15892d6e57
commit
da5dd683d6
|
@ -44,7 +44,7 @@ func (b *Board) CanRenameIdent(ident string) (bool, error) {
|
||||||
return true, nil
|
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 {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue