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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 20 Jun 2006 03:38:58 -0000


albertel		Mon Jun 19 23:38:58 2006 EDT

  Modified files:              
    /loncom/homework	bridgetask.pm 
  Log:
  - correcting retriveResources call, we don't want the resources from sub maps (since the parameteres don't penetrate there), and we want only problems/ (or tasks)
  
  
  
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.174 loncom/homework/bridgetask.pm:1.175
--- loncom/homework/bridgetask.pm:1.174	Mon Jun 19 23:33:55 2006
+++ loncom/homework/bridgetask.pm	Mon Jun 19 23:38:58 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: bridgetask.pm,v 1.174 2006/06/20 03:33:55 albertel Exp $
+# $Id: bridgetask.pm,v 1.175 2006/06/20 03:38:58 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -112,7 +112,8 @@
     my $navmap = Apache::lonnavmaps::navmap->new();
     my ($symb) = &Apache::lonxml::whichuser();
     my ($map)  = &Apache::lonnet::decode_symb($symb);
-    my @resources = $navmap->retrieveResources($map,undef,1,0);
+    my @resources = 
+	$navmap->retrieveResources($map, sub { $_[0]->is_problem() },0,0);
     my %old_history = %Apache::lonhomework::history;
     my %old_results = %Apache::lonhomework::results;