Move to inner.
This commit is contained in:
parent
51c81e19af
commit
d052f75a1c
@ -960,9 +960,11 @@ func (this *MatterService) WrapParentDetail(request *http.Request, matter *Matte
|
||||
panic(result.BadRequest("matter cannot be nil."))
|
||||
}
|
||||
|
||||
//when self not root.
|
||||
if matter.Uuid != MATTER_ROOT {
|
||||
|
||||
puuid := matter.Puuid
|
||||
tmpMatter := matter
|
||||
if matter.Uuid != MATTER_ROOT {
|
||||
for puuid != MATTER_ROOT {
|
||||
pFile := this.matterDao.CheckByUuid(puuid)
|
||||
tmpMatter.Parent = pFile
|
||||
|
Loading…
Reference in New Issue
Block a user