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

          Pedro Resende (Inactive) created issue -
          Pedro Resende (Inactive) made changes -
          Field Original Value New Value
          Link This issue discovered while testing EZP-21854 [ EZP-21854 ]
          Pedro Resende (Inactive) made changes -
          Status Open [ 1 ] Confirmed [ 10037 ]
          Paulo Nunes (Inactive) made changes -
          Link This issue blocks EZP-21854 [ EZP-21854 ]
          Pedro Resende (Inactive) made changes -
          Description If you try to use

          {{ ez_render_field( content, 'location' ) }}

          on a gmaplocation_filed you'll get the following twig exception

          {noformat}
           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
          {noformat}

          After investigating a bit more I found out that the problem is that the array parameters is empty
          If you try to use

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

          on a gmaplocation_filed you'll get the following twig exception

          {noformat}
           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
          {noformat}

          After investigating a bit more I found out that the problem is that the array parameters is empty
          André Rømcke made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Jérôme Vieilledent (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Jérôme Vieilledent [ jerome.vieilledent@ez.no ]
          Jérôme Vieilledent (Inactive) made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Jérôme Vieilledent (Inactive) made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Affects Version/s 5.2-rc1 [ 12781 ]
          Affects Version/s 5.2-dev [ 12300 ]
          Fix Version/s 5.2 [ 12582 ]
          Fix Version/s 2013.11 [ 12880 ]
          Jérôme Vieilledent (Inactive) made changes -
          Remote Link This issue links to "PR (Web Link)" [ 12807 ]
          Jérôme Vieilledent (Inactive) made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Pedro Resende (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Jérôme Vieilledent [ jerome.vieilledent@ez.no ] Pedro Resende [ pedro.resende@ez.no ]
          Pedro Resende (Inactive) made changes -
          Assignee Pedro Resende [ pedro.resende@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Pedro Resende (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Pedro Resende (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 1 hour [ 3600 ]
          Worklog Id 41828 [ 41828 ]
          Pedro Resende (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 59854 ] EZ* Development Workflow [ 84460 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 84460 ] EZEE Development Workflow [ 123115 ]

            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