fixed ordering problem of new page tree
This commit is contained in:
parent
6ac6a952f9
commit
bf78206c17
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ sub walk_down {
|
|||
if($callback_status) {
|
||||
# Keep recursing unless callback returned false... and if there's
|
||||
# anything to recurse into, of course.
|
||||
my @daughters = WebGUI::SQL->buildArray("select pageId from page where parentId=$pageId and pageId != 0");
|
||||
my @daughters = WebGUI::SQL->buildArray("select pageId from page where parentId=$pageId and pageId != 0 order by sequenceNumber");
|
||||
if(@daughters) {
|
||||
$o->{'_depth'} += 1;
|
||||
foreach my $one (@daughters) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue