[LON-CAPA-cvs] cvs: loncom /homework grades.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 05 Dec 2003 19:54:52 -0000


albertel		Fri Dec  5 14:54:52 2003 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - when viewing SUBM for multiple students only the first 'Grade Student' button worked BUG#2418
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.168 loncom/homework/grades.pm:1.169
--- loncom/homework/grades.pm:1.168	Fri Dec  5 14:40:56 2003
+++ loncom/homework/grades.pm	Fri Dec  5 14:54:51 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.168 2003/12/05 19:40:56 albertel Exp $
+# $Id: grades.pm,v 1.169 2003/12/05 19:54:51 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1679,10 +1679,11 @@
 	my $toGrade.='<input type="button" value="Grade Student" '.
 	    'onClick="javascript:checksubmit(this.form,\'Grade Student\',\''
 	    .$counter.'\');" TARGET=_self> &nbsp;'."\n" if (&canmodify($usec));
-	$toGrade.='</td></tr></table></td></tr></table></form>'."\n";
-	$toGrade.=&show_grading_menu_form($symb,$url) 
-	    if (($ENV{'form.command'} eq 'submission') || 
-		($ENV{'form.command'} eq 'processGroup' && $counter == $total));
+	$toGrade.='</td></tr></table></td></tr></table>'."\n";
+	if (($ENV{'form.command'} eq 'submission') || 
+	    ($ENV{'form.command'} eq 'processGroup' && $counter == $total)) {
+	    $toGrade.='</form>'.&show_grading_menu_form($symb,$url) 
+	}
 	$request = print($toGrade);
 	return;
     }