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

Exception while calling not ez_is_field_empty()

    Details

      Description

      After calling in Twig template:

      {% if not ez_is_field_empty(content, 'main_image'') %}

      {{ ez_render_field( content, 'main_image',

      { 'template': 'AppBundle:Field:ezimage_simple.html.twig' }

      ) }}

      {% endif %}

      i receive exception:
      An exception has been thrown during the rendering of a template ("Notice: Trying to get property of non-object") in AppBundle:eZViews/full:samplepage.html.twig at line 91.

      Line 91 contains if statement with not ez_is_field_empty(...)

      symfony/symfony: v2.8.3
      ezsystems/ezpublish-kernel: v6.1.1
      ezsystems/ezpublish-legacy: v2015.01.3

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Marek Orolin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: