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."))
|
panic(result.BadRequest("matter cannot be nil."))
|
||||||
}
|
}
|
||||||
|
|
||||||
puuid := matter.Puuid
|
//when self not root.
|
||||||
tmpMatter := matter
|
|
||||||
if matter.Uuid != MATTER_ROOT {
|
if matter.Uuid != MATTER_ROOT {
|
||||||
|
|
||||||
|
puuid := matter.Puuid
|
||||||
|
tmpMatter := matter
|
||||||
for puuid != MATTER_ROOT {
|
for puuid != MATTER_ROOT {
|
||||||
pFile := this.matterDao.CheckByUuid(puuid)
|
pFile := this.matterDao.CheckByUuid(puuid)
|
||||||
tmpMatter.Parent = pFile
|
tmpMatter.Parent = pFile
|
||||||
|
Loading…
Reference in New Issue
Block a user