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

Unable to use ez_render_field with ezgmaplocation_field

    XMLWordPrintable

Details

    Description

      If you try to use

      {{ ez_render_field( content, 'location', { 'param' : { 'mapType' : 'SATELLITE', 'width' : '500px' , 'height' : '200px'  } } ) }}
      

      on a gmaplocation_filed you'll get the following twig exception

       Key "width" for array with keys "" does not exist in EzPublishCoreBundle::content_fields.html.twig at line 306
      500 Internal Server Error - Twig_Error_Runtime 
      

      After investigating a bit more I found out that the problem is that the array parameters is empty

      Attachments

        Activity

          People

            Unassigned Unassigned
            pedro.resende-obsolete@ez.no Pedro Resende (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 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