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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 16 Aug 2002 21:30:08 -0000


albertel		Fri Aug 16 17:30:08 2002 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  - fixes templet based creation of problems
  - BUG#646
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.85 loncom/homework/lonhomework.pm:1.86
--- loncom/homework/lonhomework.pm:1.85	Wed Aug  7 14:20:29 2002
+++ loncom/homework/lonhomework.pm	Fri Aug 16 17:30:08 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.85 2002/08/07 18:20:29 albertel Exp $
+# $Id: lonhomework.pm,v 1.86 2002/08/16 21:30:08 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -422,7 +422,7 @@
       push (@allnames, $name);
     }
   }
-  if (@allnames) {
+  if (@allnames && !$result) {
     $result="<option>Select a $extension type</option>\n<option>".
       join('</option><option>',sort(@allnames)).'</option>';
   }