1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-13 05:50:27 +00:00

Fix the renaming bug

This commit is contained in:
bouncepaw 2021-02-20 11:48:27 +05:00
parent 2d9e3b4a54
commit 345efef35a

View File

@ -86,6 +86,10 @@ func (h *Hypha) RenameHypha(newHypha *Hypha, recursive bool, u *user.User) (hop
if len(hop.Errs) == 0 {
for _, h := range hyphaeToRename {
h.renameTo(replaceName(h.Name))
h.Lock()
h.TextPath = replaceName(h.TextPath)
h.BinaryPath = replaceName(h.BinaryPath)
h.Unlock()
}
}
return hop, ""