You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... choice of loops ... for($i=0;$i<$arrayIndexed.length;$i++) { $newJCcKContentStuff = new JCckContent( etc.... }
or foreach($arrayAssociative as $k => $v) { $newJCcKContentStuff = new JCckContent( etc.... }
Either way, when the usergroup is created, the nesting is done alphabetically, rather than in the order they are created
I would expect: id = 1 | title = 'zebra' | lft = 1 | rgt = 2 id = 2 | title = 'aadvark' | lft = 3 | rgt = 4 id = 3 | title = 'dog' | lft = 5 | rgt = 6 id = 4 | title = 'bear' | lft = 7 | rgt = 8
But I get:
id = 1 | title = 'zebra' | lft = 7 | rgt = 8 id = 2 | title = 'aadvark' | lft = 1 | rgt = 2 id = 3 | title = 'dog' | lft = 3 | rgt = 4 id = 4 | title = 'bear' | lft = 5 | rgt = 6...
Thanks
Jon
The text was updated successfully, but these errors were encountered:
The tree is automatically rebuilt alphabetically after each new entry. That's on the Joomla! core side.
You'll see the same behaviour while creating using the UI.
Hi folks...
Creating USERGROUP with JCckContent....
(Not sure if this has ANYTHING AT ALL to do with Seblod....)
... choice of arrays ...
$arrayIndexed('zebra', 'aadvark', 'dog', 'bear' );
$arrayAssociative(0 => 'zebra', 1 => 'aadvark', 2 => 'dog', 3 => 'bear' );
... choice of loops ...
for($i=0;$i<$arrayIndexed.length;$i++) { $newJCcKContentStuff = new JCckContent( etc.... }
or
foreach($arrayAssociative as $k => $v) { $newJCcKContentStuff = new JCckContent( etc.... }
Either way, when the usergroup is created, the nesting is done alphabetically, rather than in the order they are created
I would expect:
id = 1 | title = 'zebra' | lft = 1 | rgt = 2
id = 2 | title = 'aadvark' | lft = 3 | rgt = 4
id = 3 | title = 'dog' | lft = 5 | rgt = 6
id = 4 | title = 'bear' | lft = 7 | rgt = 8
But I get:
id = 1 | title = 'zebra' | lft = 7 | rgt = 8
id = 2 | title = 'aadvark' | lft = 1 | rgt = 2
id = 3 | title = 'dog' | lft = 3 | rgt = 4
id = 4 | title = 'bear' | lft = 5 | rgt = 6
...Thanks
Jon
The text was updated successfully, but these errors were encountered: