]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #5142 - Displays correct group visibility access on group edit page
authorPaweł Sroka <srokap@gmail.com>
Tue, 26 Feb 2013 14:18:28 +0000 (15:18 +0100)
committerPaweł Sroka <srokap@gmail.com>
Tue, 26 Feb 2013 14:18:28 +0000 (15:18 +0100)
mod/groups/lib/groups.php

index 7d5c3232c45d5539e0e62974f72eb0de0b46d194..0557d41eb1f2d8876279a375c8c0bc73db85c9ae 100644 (file)
@@ -561,6 +561,8 @@ function groups_prepare_form_vars($group = null) {
                if ($group->access_id != ACCESS_PUBLIC && $group->access_id != ACCESS_LOGGED_IN) {
                        // group only access - this is done to handle access not created when group is created
                        $values['vis'] = ACCESS_PRIVATE;
+               } else {
+                       $values['vis'] = $group->access_id;
                }
 
                $values['entity'] = $group;