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

eZContentObjectTreeNode::removeSubtrees does not remove objects hidden by superior

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • 4.2.0, 4.3.0, 4.4.0
    • Misc
    • None

    Description

      The culprit seems to be $node->subTreeCount() called without parameter 'IgnoreVisibility'=>true.

      Steps to reproduce

      1). Create an object with subobjects below
      2). Hide the object so the subobjects will be hidden by superior
      3). Execute php bin/php/ezsubtreeremove.php --nodes-id=PARENT_NODE_ID --ignore-trash
      4). Notice that only the parent node is removed while the subobjects loose location only and remains in database.

      Attachments

        Activity

          People

            chen chen
            2b274289-6c7c-4b95-a70d-ca6c4a846602@accounts.ibexa.co j h
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: