[LON-CAPA-cvs] cvs: loncom /homework/templates examupload.problem

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 21 Jul 2003 17:51:24 -0000


albertel		Mon Jul 21 13:51:24 2003 EDT

  Modified files:              
    /loncom/homework/templates	examupload.problem 
  Log:
  - default assumed weight when nothing is set is one
  
  
Index: loncom/homework/templates/examupload.problem
diff -u loncom/homework/templates/examupload.problem:1.2 loncom/homework/templates/examupload.problem:1.3
--- loncom/homework/templates/examupload.problem:1.2	Tue Jul 15 14:23:56 2003
+++ loncom/homework/templates/examupload.problem	Mon Jul 21 13:51:24 2003
@@ -2,7 +2,7 @@
 <displaytitle />
 <script type="loncapa/perl">
 $weight=&EXT('resource.0.weight');
-if ((!defined($weight)) || ($weight eq '')) { $weight=0; }
+if ((!defined($weight)) || ($weight eq '')) { $weight=1; }
 $awarded=&EXT('user.resource.resource.0.awarded');
 if (!defined($awarded)) { $awarded=0; }
 </script>