diff options
author | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-30 16:12:10 +0000 |
---|---|---|
committer | Dave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-30 16:12:10 +0000 |
commit | 3325532fe3740a14991007f03b976b5d9877c2e9 (patch) | |
tree | 5be2d65e436d692bb85fb4eb385c2f9bc56620a1 /views/default/forms/edit.php | |
parent | 1c4106ff7736fa9881d7aa6feae7083b89536a53 (diff) | |
download | elgg-3325532fe3740a14991007f03b976b5d9877c2e9.tar.gz elgg-3325532fe3740a14991007f03b976b5d9877c2e9.tar.bz2 |
videolist edit bug fixed
git-svn-id: http://code.elgg.org@6594 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/forms/edit.php')
-rw-r--r-- | views/default/forms/edit.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/forms/edit.php b/views/default/forms/edit.php index f684689da..7d7901bcd 100644 --- a/views/default/forms/edit.php +++ b/views/default/forms/edit.php @@ -6,6 +6,12 @@ gatekeeper(); $page_owner = page_owner_entity(); $container_guid = $vars['entity']->container_guid; +$owner = get_entity($container_guid); +if($owner instanceof ElggGroup){ + $options = group_access_options($owner); +}else{ + $options = ''; +} ?> <form action="<?php echo $vars['url']; ?>action/videolist/edit" enctype="multipart/form-data" method="post" id="edit_video_form"> @@ -19,7 +25,7 @@ $container_guid = $vars['entity']->container_guid; </label></p> <p><label><?php echo elgg_echo('access'); ?><br /> - <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $vars['entity']->access_id)); ?> + <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $vars['entity']->access_id, 'options' => $options)); ?> </label></p> <p> |