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

DemoBundle stack thrown if image alias not found.

    Details

      Description

      In ezimage_simple.html.twig if image_alias is empty a stack will be thrown breaking the whole page.
      https://github.com/ezsystems/DemoBundle/blob/master/Resources/views/fields/ezimage_simple.html.twig?source=c#L7

      When a ez_image_alias is not found an error is already logged on the server:
      https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/MVC/Symfony/Templating/Twig/Extension/ContentExtension.php?source=c#L451

      So this error should be silent on the frontend and not break the page.

      The reason why the alias is not present will be fixed in another JIRA issue (EZP-22477).

        Issue Links

          Activity

          Show
          Yannick Roger (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/DemoBundle/commit/609914bd7924f2336242918a4d882bf5e6d763a2

            People

            • Assignee:
              Unassigned
              Reporter:
              Yannick Roger (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h