Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed depth in tree display when autocorrect is off

fixes #51
  • Loading branch information...
commit b5834b2c9e15a3d7e10b69e98274b8ba759ba6d6 1 parent cdf1509
@jeroenrnl authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  php/classes/zophTreeTable.inc.php
View
3  php/classes/zophTreeTable.inc.php
@@ -233,8 +233,9 @@ public static function getTreeSelectArray($rec = null, $select_array = null, $de
$children = $rec->getChildrenForUser($order);
if ($children) {
+ $depth++;
foreach ($children as $child) {
- $select_array = static::getTreeSelectArray($child, $select_array, ++$depth);
+ $select_array = static::getTreeSelectArray($child, $select_array, $depth);
}
}
return $select_array;
Please sign in to comment.
Something went wrong with that request. Please try again.