Skip to content

Commit

Permalink
Fix formatting for alias on relations
Browse files Browse the repository at this point in the history
  • Loading branch information
cancan101 committed Nov 21, 2024
1 parent fbd2d91 commit 671b01d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DataObject/GridColumnConfig/Value/DefaultValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ private function getValueForObject(Concrete $object, string $key, string $brickT
}
}

if ($value instanceof ElementInterface) {
$value = $value->getFullPath();
}

if (!$fieldDefinition instanceof Data) {
return $this->getDefaultValue($value);
}
Expand Down

0 comments on commit 671b01d

Please sign in to comment.