mirror of
				https://github.com/osmarks/mycorrhiza.git
				synced 2025-10-31 07:33:00 +00:00 
			
		
		
		
	Fix the renaming bug
This commit is contained in:
		| @@ -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, "" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 bouncepaw
					bouncepaw