fixed a guid bug in site map

This commit is contained in:
JT Smith 2004-09-25 05:51:31 +00:00
parent 0708f7f064
commit 0fb6d674dd
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
6.2.6
- Fixed a GUID bug in the Site Map wobject.
6.2.5
- Added missing upgrade file. This caused no harm to those that upgraded
without it.

View file

@ -39,11 +39,11 @@ sub _traversePageTree {
if ($alphabetic) {
$orderBy = 'title';
} else {
$orderBy = 'sequenceNumber';
$orderBy = 'nestedSetLeft';
}
$sth = WebGUI::SQL->read("select urlizedTitle, menuTitle, title, pageId, synopsis from page where parentId=".quote($parent)." and hideFromNavigation = 0 order by $orderBy");
$sth = WebGUI::SQL->read("select urlizedTitle, menuTitle, title, pageId, synopsis, isSystem from page where parentId=".quote($parent)." and hideFromNavigation = 0 order by $orderBy");
while ($data = $sth->hashRef) {
if (($data->{pageId}<0 || $data->{pageId}>999 || $data->{pageId}==1) && WebGUI::Page::canView($data->{pageId})) {
if (!$data->{isSystem} && WebGUI::Page::canView($data->{pageId})) {
push(@pages,{
"page.indent" => $indentString,
"page.url" => WebGUI::URL::gateway($data->{urlizedTitle}),