diff --git a/src/CoreShop/Bundle/CoreBundle/CoreExtension/StoreValues.php b/src/CoreShop/Bundle/CoreBundle/CoreExtension/StoreValues.php index eca70d6dc6..206752faab 100644 --- a/src/CoreShop/Bundle/CoreBundle/CoreExtension/StoreValues.php +++ b/src/CoreShop/Bundle/CoreBundle/CoreExtension/StoreValues.php @@ -606,9 +606,12 @@ public function getDataForEditmode(mixed $data, Concrete $object = null, array $ $context->setGroups($params['groups'] ?? ['Default', 'Detailed']); $values = $this->getSerializer()->toArray($storeValuesEntity, $context); + $store = $storeValuesEntity->getStore(); + $currency = $store->getCurrency(); + $storeData[$storeValuesEntity->getStore()->getId()] = [ - 'name' => $storeValuesEntity->getStore()->getName(), - 'currencySymbol' => $storeValuesEntity->getStore()->getCurrency()->getSymbol(), + 'name' => $store->getName(), + 'currencySymbol' => $currency?->getSymbol(), 'values' => $values, 'inherited' => false, 'inheritable' => $inheritable,