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

Content View breaks when providing location id as param

Details

    Description

      If you somehow provide location id to Content View, then it will throw the following now after ContentProxy feature was added in 2.2:

      Argument 'Location' is invalid: Provided location does not belong to selected content as requested via contentId parameter
      

      This for instance break Step 3 in Bike Ride tutorial where you are asked to enter following url, last parameter is optional so removing it makes it work:
      http://<yourdomains>/view/content/<ContentId>/<language>/full/true/<LocationId>

      Culprit is the following code which is wrongly using struct check:

      if (isset($parameters['contentId']) && $location->contentId !== $parameters['contentId']) {
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            andre.romcke-obsolete@ez.no André Rømcke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: