Skip to content

Commit

Permalink
Fix undefined method getObject in Document\Link - related to pimcore/…
Browse files Browse the repository at this point in the history
  • Loading branch information
dvesh3 committed Feb 15, 2023
1 parent d4aabbe commit 1811949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/layouts/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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') %}
Expand Down Expand Up @@ -209,4 +209,4 @@
{{ pimcore_inline_script() }}
{% endblock %}
</body>
</html>
</html>

0 comments on commit 1811949

Please sign in to comment.