]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
videolist edit bug fixed
authorDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 30 Jun 2010 16:12:10 +0000 (16:12 +0000)
committerDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 30 Jun 2010 16:12:10 +0000 (16:12 +0000)
git-svn-id: http://code.elgg.org@6594 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/forms/edit.php

index f684689daf71d96881d89e0573e2040cf8e6ecf0..7d7901bcdd84488ad816c61bf8a69d4446ff5434 100644 (file)
@@ -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>