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

Unable to use ez_render_field with ezgmaplocation_field

    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

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          44s 1 pedro.resende@ez.no 31/Oct/13 1:21 PM
          Confirmed Confirmed InputQ InputQ
          3d 21h 30m 1 André Rømcke 04/Nov/13 10:51 AM
          InputQ InputQ Development Development
          3h 18m 1 jerome.vieilledent@ez.no 04/Nov/13 2:10 PM
          Development Development Development Review Development Review
          11s 1 jerome.vieilledent@ez.no 04/Nov/13 2:10 PM
          Development Review Development Review Development Review done Development Review done
          32s 1 jerome.vieilledent@ez.no 04/Nov/13 2:10 PM
          Development Review done Development Review done Documentation Review done Documentation Review done
          1m 31s 1 jerome.vieilledent@ez.no 04/Nov/13 2:12 PM
          Documentation Review done Documentation Review done QA QA
          38m 48s 1 pedro.resende@ez.no 04/Nov/13 2:51 PM
          QA QA Closed Closed
          2h 3m 1 pedro.resende@ez.no 04/Nov/13 4:54 PM
          Closed Closed Reopened Reopened
          4m 57s 1 pedro.resende@ez.no 04/Nov/13 4:59 PM
          Reopened Reopened Closed Closed
          1s 1 pedro.resende@ez.no 04/Nov/13 4:59 PM

            People

            • Assignee:
              Unassigned
              Reporter:
              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