Browse Source

Merge pull request #1107 from chamilo/jloguercio-patch-1

Fix social group doesnt show in group list when adding an image (1.10.x)
José Loguercio 9 years ago
parent
commit
a02a8143fd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/inc/lib/usergroup.lib.php

+ 2 - 1
main/inc/lib/usergroup.lib.php

@@ -971,7 +971,8 @@ class UserGroup extends Model
                 if ($picture) {
                     $params = array(
                         'id' => $id,
-                        'picture' => $picture
+                        'picture' => $picture,
+                        'group_type' => $params['group_type']
                     );
                     $this->update($params);
                 }