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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 18 Sep 2003 17:20:05 -0000


albertel		Thu Sep 18 13:20:05 2003 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - Fixes bug #2202, you can't select the one item in a one item list
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.137 loncom/homework/grades.pm:1.138
--- loncom/homework/grades.pm:1.137	Wed Sep 17 13:43:34 2003
+++ loncom/homework/grades.pm	Thu Sep 18 13:20:05 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.137 2003/09/17 17:43:34 albertel Exp $
+# $Id: grades.pm,v 1.138 2003/09/18 17:20:05 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -218,7 +218,8 @@
 		}
 	    }
 	} else {
-	    if (selectOne.selected) return selectOne.value;
+            // only one value it must be the selected one
+	    return selectOne.value;
 	}
     }
 </script>