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:
parent
2d9e3b4a54
commit
345efef35a
@ -86,6 +86,10 @@ func (h *Hypha) RenameHypha(newHypha *Hypha, recursive bool, u *user.User) (hop
|
|||||||
if len(hop.Errs) == 0 {
|
if len(hop.Errs) == 0 {
|
||||||
for _, h := range hyphaeToRename {
|
for _, h := range hyphaeToRename {
|
||||||
h.renameTo(replaceName(h.Name))
|
h.renameTo(replaceName(h.Name))
|
||||||
|
h.Lock()
|
||||||
|
h.TextPath = replaceName(h.TextPath)
|
||||||
|
h.BinaryPath = replaceName(h.BinaryPath)
|
||||||
|
h.Unlock()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return hop, ""
|
return hop, ""
|
||||||
|
Loading…
Reference in New Issue
Block a user