[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 14 Aug 2007 01:45:24 -0000
albertel Mon Aug 13 21:45:24 2007 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
- BUG#5368 - need to set the problem status after loading the stored data so that the problem stae can get overridden in CSTR
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.388 loncom/homework/structuretags.pm:1.389
--- loncom/homework/structuretags.pm:1.388 Fri Aug 10 07:35:57 2007
+++ loncom/homework/structuretags.pm Mon Aug 13 21:45:20 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.388 2007/08/10 11:35:57 foxr Exp $
+# $Id: structuretags.pm,v 1.389 2007/08/14 01:45:20 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -665,6 +665,11 @@
$Apache::lonhomework::default_type = $Apache::lonhomework::type;
&initialize_storage();
+ if ($target ne 'analyze'
+ && $env{'request.state'} eq 'construct') {
+ &set_problem_state('0');
+ }
+
if ($target eq 'web') {
&Apache::lonxml::debug(" grading history ");
&Apache::lonhomework::showhash(%Apache::lonhomework::history);