Skip to content

Commit

Permalink
Search for type='root' instead of pid=0
Browse files Browse the repository at this point in the history
  • Loading branch information
bytehead committed Jan 16, 2022
1 parent de2b7dc commit 9f56fda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function generate(): string
$fields = array();
$originalLabel = $this->strLabel;
$cssClasses = 'tl_select tl_chosen';
$rootPages = PageModel::findByPid(0, array('order' => 'sorting'));
$rootPages = PageModel::findByType('root', array('order' => 'sorting'));
$wizard = StringUtil::deserialize($this->wizard);

$this->blankOptionLabel = $GLOBALS['TL_LANG']['tl_module'][sprintf('%sBlankOptionLabel', $this->name)];
Expand Down

0 comments on commit 9f56fda

Please sign in to comment.