From 63042ce0c089e78d5bc3a000e78ce6d63ccc8f45 Mon Sep 17 00:00:00 2001 From: Alex Rothberg Date: Tue, 12 Nov 2024 21:54:26 -0500 Subject: [PATCH] Fix formatting for alias on relations --- src/DataObject/GridColumnConfig/Value/DefaultValue.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DataObject/GridColumnConfig/Value/DefaultValue.php b/src/DataObject/GridColumnConfig/Value/DefaultValue.php index 0adc73fdc2..3a7cd8ef77 100644 --- a/src/DataObject/GridColumnConfig/Value/DefaultValue.php +++ b/src/DataObject/GridColumnConfig/Value/DefaultValue.php @@ -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); }