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

MaxNodesRemoveSubtree warning missing in frontend designs

    Details

      Description

      content.ini [RemoveSettings] MaxNodesRemoveSubtree (default: 100) is a limit on the amount of subtree items you can delete over HTTP. If you try to remove more than this, you get an warning message:
      "The lines marked with red contain more than the maximum possible nodes for subtree removal and will not be deleted. You can remove this subtree using the ezsubtreeremove.php script."

      This mechanism is implemented in template code, and only in the admin and admin2 designs. In frontends like ezwebin and ezflow the warning is not shown, but the mechanism still works. The consequence for the end user is that when he tries to delete large subtrees, nothing happens. The page reloads, and the subtree is still there. No warning.

      The bug applies to any design that allows you to delete content. The fix would be to add the warning message to these templates:
      design/standard/templates/node/removeobject.tpl
      extension/ezwebin/design/ezwebin/templates/node/removeobject.tpl

      The code for the warning message can be found in:
      design/admin/templates/node/removeobject.tpl
      design/admin2/templates/node/removeobject.tpl
      (look for "exceeded_limit_of_subitems")

      Steps to reproduce
      • Set content.ini [RemoveSettings] MaxNodesRemoveSubtree to 1
      • Create a Folder with 2 sub items
      • Go to a frontend design, such as ezwebin or ezflow
      • Try to remove the folder you created: nothing happens. (BUG)

        Activity

        Show
        Christian Pfeffer Gjengedal added a comment - Fixed in 4.5 alpha 2: https://github.com/ezsystems/ezpublish/commit/39c854ad4a4792793026e665bb3024c2c5d4be83 https://github.com/ezsystems/ezwebin/commit/15c5b6e79fccc02b7566585272c073ad862a9773
        Hide
        Geir Arne Waaler added a comment -

        Closed and no documentation needed

        Geir Arne Waaler

        Show
        Geir Arne Waaler added a comment - Closed and no documentation needed Geir Arne Waaler
        Hide
        ezrobot added a comment -

        This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

        Show
        ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          People

          • Assignee:
            Christian Pfeffer Gjengedal
            Reporter:
            (inactive) Gunnstein Lye
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: