Skip to content

Commit

Permalink
[Bug, EC]: Visual mandatory flag on Classification Store group when a…
Browse files Browse the repository at this point in the history
…ttribute is not mandatory (pimcore#17680)
  • Loading branch information
kingjia90 authored Oct 8, 2024
1 parent 51752cb commit 8a843a1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public function load(): array
$resource = $entry->getDao();
$dataItem['enabled'] = (bool)$dataItem['enabled'];
$dataItem['mandatory'] = (bool)$dataItem['mandatory'];

$definition = json_decode($dataItem['definition'], true);
$definition['mandatory'] = $dataItem['mandatory'];
$dataItem['definition'] = json_encode($definition);

$resource->assignVariablesToModel($dataItem);

$configData[] = $entry;
Expand Down

0 comments on commit 8a843a1

Please sign in to comment.