From 98e4f46f999eb4ca999df5d151a66f559fafa192 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); }