Skip to content

Commit 8296e51

Browse files
authored
Bugfix: get root while call getParent for ContentDto
1 parent caff954 commit 8296e51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Dtos/ContentDto.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function getPaginatedChildren($perPage = 10, $pageName = 'page', $page =
136136

137137
public function getParent()
138138
{
139-
return $this->getAncestors()->first();
139+
return $this->getAncestors()->last();
140140
}
141141

142142
public function getAncestors()

0 commit comments

Comments
 (0)