Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30839

Location->getContent() not working for drafts in preview controller

    XMLWordPrintable

Details

    Description

      During preview, template usage of $location->getContent() (in Twig that is location.content) will not work with a type exception. This can also be triggered by many other features in the system which by now use this API in some cases.

       

      This is caused by missing content passed to the "fake" location object created by preview controller:

      https://github.com/ezsystems/ezpublish-kernel/blob/7.5/eZ/Publish/Core/Helper/PreviewLocationProvider.php#L73-L81

      Attachments

        Activity

          People

            Unassigned Unassigned
            andre.romcke-obsolete@ez.no André Rømcke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: