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)



      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.


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


        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        42s 1 joao.inacio@ez.no 17/Jul/14 3:56 PM
        Confirmed Confirmed InputQ InputQ
        20m 38s 1 Paulo Lopes (Inactive) 17/Jul/14 4:17 PM
        InputQ InputQ Development Development
        7d 33m 1 Gunnstein Lye 24/Jul/14 4:50 PM
        Development Development Development Review Development Review
        3d 17h 57m 1 Gunnstein Lye 28/Jul/14 10:48 AM
        Development Review Development Review Development Review done Development Review done
        2d 5h 21m 1 Gunnstein Lye 30/Jul/14 4:09 PM
        Development Review done Development Review done Documentation Review done Documentation Review done
        17h 43m 1 Gunnstein Lye 31/Jul/14 9:52 AM
        Documentation Review done Documentation Review done QA QA
        29m 56s 1 Paulo Nunes 31/Jul/14 10:22 AM
        QA QA Closed Closed
        23h 1 Paulo Nunes 01/Aug/14 9:23 AM


          • Assignee:
            Joao Inacio (Inactive)
          • Votes:
            0 Vote for this issue
            4 Start watching this issue


            • Created:

              Time Tracking

              Original Estimate - Not Specified
              Not Specified
              Remaining Estimate - 0 minutes
              Time Spent - 1 day, 4 hours
              1d 4h