[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 24 Jan 2005 22:36:04 -0000
albertel Mon Jan 24 17:36:04 2005 EDT
Modified files:
/loncom/xml lonxml.pm
Log:
BUG#3851, when able to edit a simple problem, don't throw bombs, just show the error/warnign messages
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.350 loncom/xml/lonxml.pm:1.351
--- loncom/xml/lonxml.pm:1.350 Thu Dec 9 18:45:59 2004
+++ loncom/xml/lonxml.pm Mon Jan 24 17:36:03 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.350 2004/12/09 23:45:59 albertel Exp $
+# $Id: lonxml.pm,v 1.351 2005/01/24 22:36:03 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1382,6 +1382,10 @@
}
sub show_error_warn_msg {
+ if ($ENV{'request.filename'} eq '/home/httpd/html/res/lib/templates/simpleproblem.problem' &&
+ &Apache::lonnet::allowed('mdc',$ENV{'request.course.id'})) {
+ return 1;
+ }
return (($Apache::lonxml::debug eq 1) ||
($ENV{'request.state'} eq 'construct') ||
($Apache::lonhomework::browse eq 'F'