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

Sending Relation to trash will crash Relating Content view in Back Office

    Details

      Description

      Sending Content Item to trash will produce 500 exception on Content Item that is relating to removed Content.
      Step to reproduce
      1. Clean installation of eZ Platform 2.5.0
      2. Create a new Content Type named Content with Relations with only one field: ezobjectrelationlist.
      3. Create Article - publish it.
      4. Create a new Content with Relations content. As a relation add article created in step 3. Publish the new Content with Relations.
      5. Go to Article created in step 3 and send it to the trash.
      6. Go to Content with Relations from step 4.

      Result
      500 Exception

      An exception has been thrown during the rendering of a template ("Notice: Trying to get property 'parentLocationId' of non-object") in "@admin/fieldtypes/preview/content_fields.html.twig".

        Activity

        Show
        Mateusz Bieniek added a comment - PR: https://github.com/ezsystems/ezplatform-admin-ui/pull/972
        Hide
        Katarzyna Zawada added a comment -

        QA Approved

        Show
        Katarzyna Zawada added a comment - QA Approved
        Show
        Katarzyna Zawada added a comment - PR merged: https://github.com/ezsystems/ezplatform-admin-ui/commit/14ddb38f18f36f7592e175330f6591feaab36109

          People

          • Assignee:
            Unassigned
            Reporter:
            Mateusz Bieniek
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: