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

clearViewCache for subtree uses node column 'contentobject_id' removed since EZP-18195

    Details

      Description

      The 'Clear view cache from here' option from the object (class) popup menu does not work.
      An error is also thrown:

      eZContentObject::fetch:
      Object not found ()
      

      Steps to reproduce:
      • In the administration interface, enable debug and debug redirection.
      • Click to view any node with a subtree (such as 'Home' node, click class icon for the popup menu, and choose the 'Delete view cache from here' option.
      Other Notes:

      After investigation, it seems that the relevent section in content/action.php (using 'ClearViewCacheSubtree') is using a node column 'contentobject_id' that does not exist.

      The eZContentObjectTreeNode::clearViewCacheForSubtree() method is using the same column.

      According to the BC notes in the fix for EZP-18195
      (see https://github.com/ezsystems/ezpublish-legacy/commit/4652d45ca637239b4aaa8242fef24d7b6e08b7a6), this column has been removed in favor of just "id".

        Issue Links

          Activity

          Show
          Joao Inacio (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-legacy/pull/752
          Show
          Joao Inacio (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-legacy/commit/3704357d85a8552a96cc1a088b7c1bf61fb181e0
          Hide
          Joao Pingo (Inactive) added a comment -

          Tested using tc-1803 on 5.1 and Master
          All tests passed ... QA Approved

          Show
          Joao Pingo (Inactive) added a comment - Tested using tc-1803 on 5.1 and Master All tests passed ... QA Approved
          Hide
          Joao Pingo (Inactive) added a comment -
          Show
          Joao Pingo (Inactive) added a comment - Tested in https://jira.ez.no/browse/EZP-21510 QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Joao Inacio (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              7 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 - 2 hours
                2h