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

"swap node" function can swap container and non-container nodes (invalid state)

    Details

      Description

      The 'Swap with another node' function in the administration interface swaps two nodes (not subtrees).

      When one of the objects (A) is a container, with children, and the other (B) is not, the result will be an incoherent state:
      B will display a children count such as " Sub items ", but instead of the children will show the message "The <ClassName> class is not configured to contain any sub items."

      Steps to reproduce:
      • Create or modify a class, and uncheck the "Container" checkbox.
      • Create a new object of this type (NodeA)
      • Create a Folder object (NodeB), and add at least one child node to it.
      • Swap NodeA with NodeB using the node's cogwheel > Advanced > Swap with another node.

      Verify that NodeA should not have any children (not container) but does display a Sub Item count.

      Note:

      Its possible the same issue may be triggered from a script, for example; in which case the solution should ideally contemplate it as well.

        Activity

          People

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