diff options
Diffstat (limited to 'mod/groups/views')
-rw-r--r-- | mod/groups/views/default/forms/forums/addtopic.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/groups/views/default/forms/forums/addtopic.php b/mod/groups/views/default/forms/forums/addtopic.php index fcc75f7a7..ca972c714 100644 --- a/mod/groups/views/default/forms/forums/addtopic.php +++ b/mod/groups/views/default/forms/forums/addtopic.php @@ -19,13 +19,14 @@ $message = ""; $message_id = ""; $status = ""; - $access_id = ACCESS_DEFAULT; - + // get the group guid $group_guid = (int) get_input('group_guid'); // set up breadcrumbs $group = get_entity($group_guid); + $access_id = $group->group_acl; + $options = group_access_options($group); elgg_push_breadcrumb(elgg_echo('groups'), $CONFIG->wwwroot."pg/groups/world/"); elgg_push_breadcrumb($group->name, $group->getURL()); elgg_push_breadcrumb(elgg_echo('item:object:groupforumtopic'), $CONFIG->wwwroot."pg/groups/forum/{$group_guid}/"); @@ -93,7 +94,7 @@ <p> <label> <?php echo elgg_echo('access'); ?><br /> - <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $access_id)); ?> + <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $access_id, 'options' => $options)); ?> </label> </p> |