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 ]
          Show
          Pedro Resende (Inactive) added a comment - Possible PR https://github.com/ezsystems/ezpublish-kernel/pull/590
          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 ]
          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/ba745f6c19a91f504f8a4043ed289376a8ebfc54
          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 ]
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A.

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.
          Pedro Resende (Inactive) made changes -
          Assignee Pedro Resende [ pedro.resende@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Pedro Resende (Inactive) logged work - 04/Nov/13 4:58 PM
          • Time Spent:
            1 hour
             

            Analyse, reproduce, issue and verify the issue has been fixed

          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 ]
          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