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']) {
      

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        3d 19h 31m 1 André Rømcke 13/Nov/18 1:54 PM
        Confirmed Confirmed InputQ InputQ
        8s 1 André Rømcke 13/Nov/18 1:54 PM
        InputQ InputQ Development Review done Development Review done
        34s 1 André Rømcke 13/Nov/18 1:54 PM
        Development Review done Development Review done Documentation Review done Documentation Review done
        7s 1 André Rømcke 13/Nov/18 1:54 PM

          People

          • Assignee:
            Unassigned
            Reporter:
            André Rømcke
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: