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

matthew lon-capa-cvs@mail.lon-capa.org
Thu, 12 Jun 2003 17:06:44 -0000


matthew		Thu Jun 12 13:06:44 2003 EDT

  Modified files:              
    /loncom/interface/spreadsheet	classcalc.pm 
  Log:
  Not every student has a name filled in, so use the students username
  as a link instead.
  
  
Index: loncom/interface/spreadsheet/classcalc.pm
diff -u loncom/interface/spreadsheet/classcalc.pm:1.7 loncom/interface/spreadsheet/classcalc.pm:1.8
--- loncom/interface/spreadsheet/classcalc.pm:1.7	Thu May 29 14:31:27 2003
+++ loncom/interface/spreadsheet/classcalc.pm	Thu Jun 12 13:06:44 2003
@@ -1,5 +1,5 @@
 #
-# $Id: classcalc.pm,v 1.7 2003/05/29 18:31:27 matthew Exp $
+# $Id: classcalc.pm,v 1.8 2003/06/12 17:06:44 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -175,8 +175,8 @@
             '&sdomain='.$student->{'domain'}.'">';
         $student->{'section'} = 'none' if ($student->{'section'} eq '-1');
 	$r->print('<tr>'.'<td>'.$rownum.'</td>'.
-		  '<td>'.$link.$student->{'fullname'}.'</a></td>'.
-		  '<td>'.$student->{'username'}.'</td>'.
+		  '<td>'.$student->{'fullname'}.'</td>'.
+		  '<td>'.$link.$student->{'username'}.'</a></td>'.
 		  '<td>'.$student->{'domain'}  .'</td>'.
 		  '<td>'.$student->{'section'} .'</td>'.
 		  '<td>'.$student->{'status'}  .'</td>'.