I have set the max levels deep for creation to be 2. However, I can create more then allowed. In the example I have created 5 levels (and could have kept going)

CommentFileSizeAuthor
maxlevels.jpg9.94 KB32940stf

Comments

wim leers’s picture

Assigned: Unassigned » wim leers
Category: support » bug

Ever since I switched to the abstracted config stuff, we've been having problems with create new item/level, in various forms. I think (and hope) this is one of the last ones. I'm sure I'll be able to reproduce this one.

Thanks for your endless bug reports ;) :)

wim leers’s picture

Status: Active » Fixed

It was a typo:

-      if ($last < $config['editability']['max_levels'] - 1) {
+      if ($depth < $config['editability']['max_levels'] - 1) {
wim leers’s picture

And this issue made me realize something: http://drupal.org/node/264789.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.