Author: jfthomps
Date: Thu Nov 29 20:43:52 2012
New Revision: 1415364

URL: http://svn.apache.org/viewvc?rev=1415364&view=rev
Log:
VCL-653
editing a federated user group sets the affiliation of the group that of the 
user editing the group

groups.php: modified editOrAddGroup - added affiliationid to the continuation 
data for courseroll and federated user groups

Modified:
    vcl/branches/vcl-2.3-bugfixes/web/.ht-inc/groups.php

Modified: vcl/branches/vcl-2.3-bugfixes/web/.ht-inc/groups.php
URL: 
http://svn.apache.org/viewvc/vcl/branches/vcl-2.3-bugfixes/web/.ht-inc/groups.php?rev=1415364&r1=1415363&r2=1415364&view=diff
==============================================================================
--- vcl/branches/vcl-2.3-bugfixes/web/.ht-inc/groups.php (original)
+++ vcl/branches/vcl-2.3-bugfixes/web/.ht-inc/groups.php Thu Nov 29 20:43:52 
2012
@@ -810,8 +810,10 @@ function editOrAddGroup($state) {
                        if($data['type'] == 'resource')
                                $cdata['resourcetypeid'] = $resourcetypeid;
                        else {
-                               if($data['courseroll'] == 1 || $data['custom'] 
== 0)
+                               if($data['courseroll'] == 1 || $data['custom'] 
== 0) {
                                        $cdata['name'] = $data['name'];
+                                       $cdata['affiliationid'] = 
$data['affiliationid'];
+                               }
                                $cdata['selectAffil'] = $selectAffil;
                                $cdata['groupwasnone'] = $groupwasnone;
                                $cdata['custom'] = $data['custom'];


Reply via email to