Fix the move to root dir feature.
This commit is contained in:
parent
480cbb73ea
commit
51c81e19af
@ -962,12 +962,14 @@ func (this *MatterService) WrapParentDetail(request *http.Request, matter *Matte
|
||||
|
||||
puuid := matter.Puuid
|
||||
tmpMatter := matter
|
||||
if matter.Uuid != MATTER_ROOT {
|
||||
for puuid != MATTER_ROOT {
|
||||
pFile := this.matterDao.CheckByUuid(puuid)
|
||||
tmpMatter.Parent = pFile
|
||||
tmpMatter = pFile
|
||||
puuid = pFile.Puuid
|
||||
}
|
||||
}
|
||||
|
||||
return matter
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user