[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm

raeburn raeburn@source.lon-capa.org
Fri, 19 Mar 2010 20:21:19 -0000


raeburn		Fri Mar 19 20:21:19 2010 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm 
  Log:
  - In "Existing Roles" table for course/author context, revoked roles 
    without a start date weren't being marked as "expired or revoked".
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.334 loncom/interface/loncreateuser.pm:1.335
--- loncom/interface/loncreateuser.pm:1.334	Fri Mar  5 06:37:43 2010
+++ loncom/interface/loncreateuser.pm	Fri Mar 19 20:21:18 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.334 2010/03/05 06:37:43 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.335 2010/03/19 20:21:18 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1455,6 +1455,8 @@
             $newkey .= '_'.$newrole;
             if ($start ne '' && $end ne '') {
                 $newvalue .= '_'.$end.'_'.$start;
+            } elsif ($end ne '') {
+                $newvalue .= '_'.$end;
             }
             $rolesdump{$newkey} = $newvalue;
         }