fixed SQL quoting and GUID problems
This commit is contained in:
parent
fd2100e09b
commit
86ccc28fc6
2 changed files with 2 additions and 2 deletions
|
|
@ -344,7 +344,7 @@ sub motherSelfAndSisters {
|
|||
$class->keyColumn()." != $keyColumnId",
|
||||
]
|
||||
);
|
||||
if ($class->useDummyRoot() && $parentId == 0) {
|
||||
if ($class->useDummyRoot() && $parentId eq '0') {
|
||||
push @objs, $class->dummyRoot();
|
||||
}
|
||||
return ($self,@objs);
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ sub www_edit {
|
|||
# Page roots
|
||||
%searchRoot = ( 'any'=>WebGUI::International::get(15,$self->get("namespace")),
|
||||
$session{page}{pageId}=>WebGUI::International::get(4,$self->get("namespace")),
|
||||
WebGUI::SQL->buildHash("select pageId,title from page where parentId=0 and isSystem<>1 order by title")
|
||||
WebGUI::SQL->buildHash("select pageId,title from page where parentId='0' and isSystem<>'1' order by title")
|
||||
);
|
||||
$properties->checkList ( -name=>'searchRoot',
|
||||
-options=>\%searchRoot,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue