diff --git a/src/Service/GridData/DataObject.php b/src/Service/GridData/DataObject.php index 1e58e0987..ceca4bd4d 100644 --- a/src/Service/GridData/DataObject.php +++ b/src/Service/GridData/DataObject.php @@ -180,7 +180,7 @@ public static function getData(AbstractObject $object, array $fields = null, str } // because the key for the classification store has not a direct getter, you have to check separately if the data is inheritable - if (str_starts_with($key, '~') && empty($data[$key])) { + if (str_starts_with($key, '~') && empty($data[$key]['value'])) { $type = $keyParts[1]; if ($type === 'classificationstore') { @@ -348,7 +348,8 @@ protected static function getInheritedData(Concrete $object, string $key, string return []; } - if ($inheritedValue = self::getStoreValueForObject($parent, $key, $requestedLanguage)) { + $inheritedValue = self::getStoreValueForObject($parent, $key, $requestedLanguage); + if (!empty($inheritedValue['value'])) { return [ 'parent' => $parent, 'value' => $inheritedValue,