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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 17 Aug 2006 22:45:21 -0000


albertel		Thu Aug 17 18:45:21 2006 EDT

  Modified files:              (Branch: version_2_2_X)
    /loncom/interface	loncreateuser.pm 
  Log:
  - backport 1.130
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.125.2.4 loncom/interface/loncreateuser.pm:1.125.2.5
--- loncom/interface/loncreateuser.pm:1.125.2.4	Fri Aug 11 18:47:36 2006
+++ loncom/interface/loncreateuser.pm	Thu Aug 17 18:45:18 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.125.2.4 2006/08/11 22:47:36 albertel Exp $
+# $Id: loncreateuser.pm,v 1.125.2.5 2006/08/17 22:45:18 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -604,7 +604,7 @@
                if ($area =~ /^\/(\w+)\/(\d\w+)/ ) {
 		   $class='Course';
                    my ($coursedom,$coursedir) = ($1,$2);
-		   $sortkey.="\0$1";
+		   $sortkey.="\0$coursedom";
                    # $1.'_'.$2 is the course id (eg. 103_12345abcef103l3).
                    my %coursedata=
                        &Apache::lonnet::coursedescription($1.'_'.$2);
@@ -619,6 +619,7 @@
 		       $carea=&mt('Unavailable course').': '.$area;
 		       $sortkey.="\0".&mt('Unavailable course').': '.$area;
 		   }
+		   $sortkey.="\0$coursedir";
                    $inccourses{$1.'_'.$2}=1;
                    if ((&Apache::lonnet::allowed('c'.$role_code,$1.'/'.$2)) ||
                        (&Apache::lonnet::allowed('c'.$role_code,$ccdomain))) {