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

ezcontentobject_link table not cleared when a relations attribute is deleted from a class

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1) Add attribute of type "object relations" to a class
      2) Make a note of the Class Attribute ID
      3) Set a value to some object of that class, save object
      4) Do a search for the Content Class Attribute ID in these 3 DB tables:
      4a) ezcontentclass_attribute
      4b) ezcontentobject_attribute
      4b) ezcontentobject_link
      5) Go to Setup -> Classes -> Your Class -> Edit
      6) Delete the attribute
      7) Repeat step 4

      Expected
      All reference to the Class Attribute ID should be removed from the database

      Actual
      ezcontentclass_attribute and ezcontentobject_attribute are cleared, but ezcontentobject_link retains a link to the attribute. This results in a link to the object still being shown in the admin interface under the relations tab for both objects.

      Note
      Object Relation are also affected.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 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 - 4 hours
                  4h