Skip to content

Commit

Permalink
Also add the rootNodes extra to the picker URL
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jun 28, 2023
1 parent dd2def6 commit ffda2ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core-bundle/src/Resources/contao/widgets/Picker.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ protected function getPickerUrlExtras($values = array())
$extras['fieldType'] = $this->multiple ? 'checkbox' : 'radio';
$extras['source'] = $this->strTable . '.' . $this->currentRecord;

if (\is_array($this->rootNodes))
{
$extras['rootNodes'] = array_values($this->rootNodes);
}

return $extras;
}
}

1 comment on commit ffda2ac

@asaage
Copy link

@asaage asaage commented on ffda2ac Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this related to isotope/core#2469 ?

Please sign in to comment.