mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
feat: fix org name cannot be changed bug
This commit is contained in:
parent
c24343bd53
commit
689d45c7fa
@ -432,7 +432,7 @@ func organizationChangeTrigger(oldName string, newName string) error {
|
||||
|
||||
payment := new(Payment)
|
||||
payment.Owner = newName
|
||||
_, err = session.Where("organization=?", oldName).Update(payment)
|
||||
_, err = session.Where("owner=?", oldName).Update(payment)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user