You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2012/11/29 21:44:57 UTC

svn commit: r1415366 - /vcl/trunk/web/.ht-inc/groups.php

Author: jfthomps
Date: Thu Nov 29 20:44:57 2012
New Revision: 1415366

URL: http://svn.apache.org/viewvc?rev=1415366&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/trunk/web/.ht-inc/groups.php

Modified: vcl/trunk/web/.ht-inc/groups.php
URL: http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/groups.php?rev=1415366&r1=1415365&r2=1415366&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/groups.php (original)
+++ vcl/trunk/web/.ht-inc/groups.php Thu Nov 29 20:44:57 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'];