Browse Source

Fix the move to root dir feature.

master
lishuang 6 years ago
parent
commit
51c81e19af
  1. 2
      code/rest/matter_service.go

2
code/rest/matter_service.go

@ -962,12 +962,14 @@ func (this *MatterService) WrapParentDetail(request *http.Request, matter *Matte
puuid := matter.Puuid puuid := matter.Puuid
tmpMatter := matter tmpMatter := matter
if matter.Uuid != MATTER_ROOT {
for puuid != MATTER_ROOT { for puuid != MATTER_ROOT {
pFile := this.matterDao.CheckByUuid(puuid) pFile := this.matterDao.CheckByUuid(puuid)
tmpMatter.Parent = pFile tmpMatter.Parent = pFile
tmpMatter = pFile tmpMatter = pFile
puuid = pFile.Puuid puuid = pFile.Puuid
} }
}
return matter return matter
} }

Loading…
Cancel
Save