Skip to content

Commit

Permalink
Add fallback if csLanguage is null, to default (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon authored Dec 10, 2024
1 parent f543d4e commit 5c4c4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataObject/GridColumnConfig/Value/DefaultValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private function getClassificationStoreValueForObject(Concrete $object, string $
$csFieldDefinition = $object->getClass()->getFieldDefinition($field);
$csLanguage = $this->localeService->getLocale();

if (!$csFieldDefinition->isLocalized()) {
if ($csLanguage === null || !$csFieldDefinition->isLocalized()) {
$csLanguage = 'default';
}

Expand Down

0 comments on commit 5c4c4d5

Please sign in to comment.