From 1811949f60e1a6e5bf9b43fd5f077bee573931e0 Mon Sep 17 00:00:00 2001 From: Divesh Pahuja Date: Wed, 15 Feb 2023 17:37:18 +0100 Subject: [PATCH] Fix undefined method getObject in Document\Link - related to https://github.com/pimcore/pimcore/pull/14244 --- templates/layouts/layout.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/layouts/layout.html.twig b/templates/layouts/layout.html.twig index 83d848fe..68848cd5 100644 --- a/templates/layouts/layout.html.twig +++ b/templates/layouts/layout.html.twig @@ -35,7 +35,7 @@ {% if document is instanceof('\\Pimcore\\Model\\Document\\Link') %} {# @var document \Pimcore\Model\Document\Link #} - {% set document = document.getObject() %} + {% set document = document.getElement() %} {% endif %} {% if document is instanceof('\\Pimcore\\Model\\Document\\Page') %} @@ -209,4 +209,4 @@ {{ pimcore_inline_script() }} {% endblock %} - \ No newline at end of file +