Fixed a problem where the group for a page would always be "Admins" if a UI Level was set to less than 9.
This commit is contained in:
parent
1483532536
commit
48c7da7d9f
2 changed files with 2 additions and 1 deletions
|
|
@ -659,7 +659,7 @@ sub group {
|
|||
$output .= _subtext($subtext);
|
||||
$output = $self->_tableFormRow($label,$output);
|
||||
} else {
|
||||
my $hashRef = WebGUI::SQL->quickHashRef("select groupId,groupName from groups");
|
||||
my $hashRef = WebGUI::SQL->buildHashRef("select groupId,groupName from groups");
|
||||
$output = WebGUI::Form::hiddenList({
|
||||
"name"=>$name,
|
||||
"options"=>$hashRef,
|
||||
|
|
|
|||
|
|
@ -221,6 +221,7 @@ sub www_editPage {
|
|||
$page{pageId} = "new";
|
||||
$page{title} = $page{menuTitle} = $page{urlizedTitle} = $page{synopsis} = '';
|
||||
$page{parentId} = $session{form}{npp};
|
||||
$page{ownerId} = $session{user}{userId};
|
||||
$page{ownerEdit} = 1;
|
||||
$page{ownerView} = 1;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue