[LON-CAPA-cvs] cvs: loncom /publisher lonpublisher.pm

www www@source.lon-capa.org
Sun, 07 Dec 2008 23:49:40 -0000


www		Sun Dec  7 23:49:40 2008 EDT

  Modified files:              
    /loncom/publisher	lonpublisher.pm 
  Log:
  Allow publication of problems that do not have responses if they are
  importing libraries, finishing up Bug #5696.
  This is just sort of a workaround, assuming that people who import
  libraries know what they are doing.
  
  
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.248 loncom/publisher/lonpublisher.pm:1.249
--- loncom/publisher/lonpublisher.pm:1.248	Wed Aug 27 13:08:36 2008
+++ loncom/publisher/lonpublisher.pm	Sun Dec  7 23:49:40 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Publication Handler
 #
-# $Id: lonpublisher.pm,v 1.248 2008/08/27 13:08:36 raeburn Exp $
+# $Id: lonpublisher.pm,v 1.249 2008/12/07 23:49:40 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -695,6 +695,7 @@
                     $responsecounter=0;
                 }
                 if ($lctag=~/response$/) { $responsecounter++; }
+                if ($lctag eq 'import') { $responsecounter++; }
 		my %parms=%{$token->[2]};
 		$counter=$addid{$tag};
 		if (!$counter) { $counter=$addid{$lctag}; }