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

Ezobjectrelation on the frontend misses the link to the related object

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Done
    • Affects Version/s: 1.5.1, 1.6.0
    • Fix Version/s: QA tracked issues, 1.6.0-rc1
    • Component/s: Platform stack
    • Labels:
    • Environment:

      Operating System: Debian 8
      PHP Version: 5.6.14-0+deb8u1
      Database and version: Mysql 5.5.46-0+deb8u1
      Browser (and version): Firefox 47
      Env: Prod

      Description

      Ezobjectrelation on the front end won't generate the link to the added object, however in Platform UI they appear correctly

      h5,Steps:
      1. Add Content with a Ezobjectrelation and some related object
      2. Send for publishing
      3. Verify in Platform UI that the link to the related object is present and the link works
      4. Access to the Content in the frontend. The object name is present but the link is missing

      A related issue with Ezobjectrelationlist existed and has been fixed (see EZP-26015)

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment -

          This is most like because the view is only given the content. The template checks if there is a view to create a link or not.

          One fix would be to load the location in ContentViewBuiler even if it was not passed, using the mainLocationId. It adds a slight overhead, but probably makes more sense from a template dev's perspective.

          Show
          Bertrand Dunogier added a comment - This is most like because the view is only given the content. The template checks if there is a view to create a link or not. One fix would be to load the location in ContentViewBuiler even if it was not passed, using the mainLocationId . It adds a slight overhead, but probably makes more sense from a template dev's perspective.
          Show
          Bertrand Dunogier added a comment - Fixed in https://github.com/ezsystems/ezpublish-kernel/pull/1802 .
          Hide
          Bertrand Dunogier added a comment -

          The pull-request is yours, QA.

          In addition to testing that it fixes the bug, a sanity check on content view in general is required. Please ask if not sure what it implies.

          Show
          Bertrand Dunogier added a comment - The pull-request is yours, QA. In addition to testing that it fixes the bug, a sanity check on content view in general is required. Please ask if not sure what it implies.
          Hide
          Rui Silva (Inactive) added a comment -

          PR tested and approved by QA.
          Sending back so merge can be done.

          Show
          Rui Silva (Inactive) added a comment - PR tested and approved by QA. Sending back so merge can be done.
          Show
          Bertrand Dunogier added a comment - PR merged to https://github.com/ezsystems/ezpublish-kernel/commit/a1f0e29fcbbe3ff495713cfe6ed506ed18111c7e .

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: