fixed a guid bug in site map
This commit is contained in:
parent
0708f7f064
commit
0fb6d674dd
2 changed files with 7 additions and 3 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
6.2.6
|
||||||
|
- Fixed a GUID bug in the Site Map wobject.
|
||||||
|
|
||||||
|
|
||||||
6.2.5
|
6.2.5
|
||||||
- Added missing upgrade file. This caused no harm to those that upgraded
|
- Added missing upgrade file. This caused no harm to those that upgraded
|
||||||
without it.
|
without it.
|
||||||
|
|
|
||||||
|
|
@ -39,11 +39,11 @@ sub _traversePageTree {
|
||||||
if ($alphabetic) {
|
if ($alphabetic) {
|
||||||
$orderBy = 'title';
|
$orderBy = 'title';
|
||||||
} else {
|
} 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) {
|
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,{
|
push(@pages,{
|
||||||
"page.indent" => $indentString,
|
"page.indent" => $indentString,
|
||||||
"page.url" => WebGUI::URL::gateway($data->{urlizedTitle}),
|
"page.url" => WebGUI::URL::gateway($data->{urlizedTitle}),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue