Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19224

Pages containing used XClass get deleted even if they are not selected from the tree when Delete action is performed from the page itself

    XMLWordPrintable

    Details

    • Tests:
      Integration
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      STEPS TO REPRODUCE

      1. Create a page from Home (e.g. "DeleteTest1" <server>/xwiki/bin/view/DeleteTest1/)
      2. Edit it in Class mode and add a property (e.g. 'Time1' / Type: Timezone)
      3. Create another page (e.g. "PageTest1" <server>/xwiki/bin/view/PageTest1/)
      4. Edit "PageTest1" in Object mode and add a 'DeleteTest1' object
      5. Go to page that contains the class ("DeleteTest1") and click More Actions > Delete
      6. Don't select anything from the tree and click "Confirm"

      EXPECTED RESULTS

      The page containing used XClass "DeleteTest1" is not deleted, since it was not selected from the tree on the warning message.

      ACTUAL RESULTS

      The page gets deleted nevertheless. The same happens if the page containing used XClass is nested under a space and then the Delete action is initiated from XClass page itself.

      However, if the Delete action is initiated from the space level (by selecting "Affect children") and the page containing the used XClass is not selected, it's not being deleted, as expected.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              surli Simon Urli
              Reporter:
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: