[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 11 Oct 2006 18:54:33 -0000
albertel Wed Oct 11 14:54:33 2006 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- find last submission that was a try
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.182 loncom/homework/bridgetask.pm:1.183
--- loncom/homework/bridgetask.pm:1.182 Thu Sep 28 14:59:11 2006
+++ loncom/homework/bridgetask.pm Wed Oct 11 14:54:33 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.182 2006/09/28 18:59:11 albertel Exp $
+# $Id: bridgetask.pm,v 1.183 2006/10/11 18:54:33 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -392,7 +392,8 @@
my $submissiontime;
my $version=$Apache::lonhomework::history{'resource.0.version'};
for (my $v=$Apache::lonhomework::history{'version'};$v>0;$v--) {
- if (defined($Apache::lonhomework::history{$v.':resource.'.$version.'.0.bridgetask.portfiles'})) {
+ if (defined($Apache::lonhomework::history{$v.':resource.'.$version.'.0.bridgetask.portfiles'})
+ && defined($Apache::lonhomework::history{$v.':resource.'.$version.'.0.tries'})) {
$submissiontime=$Apache::lonhomework::history{$v.':timestamp'};
last;
}