Skip to content

Commit

Permalink
target group data-type: do not configure dynamic options in __set_sta…
Browse files Browse the repository at this point in the history
…te() when not in admin mode
  • Loading branch information
brusch authored Jan 13, 2025
1 parent 4592d9a commit 1b30808
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ public function checkValidity(mixed $data, bool $omitMandatoryCheck = false, arr
public static function __set_state(array $data): static
{
$obj = parent::__set_state($data);
$options = $obj->getOptions();
if (\Pimcore::inAdmin() || empty($options)) {
if (\Pimcore::inAdmin()) {
$obj->configureOptions();
}

Expand Down

0 comments on commit 1b30808

Please sign in to comment.