mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
18.51.2008 0d9a4a1a7f42ea2dfead37770a2d9befacbd0878
Fix for issue 3613 (control panel : incorrect output messages when deleting subtree)

The difference on the method used to delete entries (with or without control) is not related to whether the delete is executed using the popup menu or the button. It is related to the number of entries below the entry that has been selected to be deleted. The threshold used currently is of 40 entries; since the common case is to delete subtrees, the threshold has been changed to 1. So when an entry is selected and contains entries below it, the control will be used systematically (instead of a recursive delete).
1 files modified
2 ■■■ changed files
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/task/DeleteEntryTask.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/task/DeleteEntryTask.java
@@ -237,7 +237,7 @@
          {
            InitialLdapContext ctx =
              controller.findConnectionForDisplayedEntry(node);
            if (node.getNumSubOrdinates() > 40)
            if (node.getNumSubOrdinates() > 0)
            {
              deleteSubtreeWithControl(ctx, dn, path, toNotify);
            }