--- loncom/homework/structuretags.pm 2007/10/31 17:40:01 1.409
+++ loncom/homework/structuretags.pm 2007/11/13 23:01:05 1.411
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.409 2007/10/31 17:40:01 albertel Exp $
+# $Id: structuretags.pm,v 1.411 2007/11/13 23:01:05 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -324,8 +324,8 @@ sub problem_edit_header {
}
sub problem_edit_footer {
- return '
- '.
+ return '
+ '.
&Apache::lonhtmlcommon::htmlareaselectactive(&Apache::lonhtmlcommon::get_htmlareafields()).
"\n\n".&Apache::loncommon::end_page();
}
@@ -723,7 +723,7 @@ sub start_problem {
if ($target ne 'analyze') {
$Apache::lonhomework::type=&Apache::lonnet::EXT('resource.0.type');
if (($env{'request.state'} eq 'construct') &&
- defined($env{'form.problemtype'})) {
+ $env{'form.problemtype'} =~ /\S/) {
$Apache::lonhomework::type=$env{'form.problemtype'};
}
&Apache::lonxml::debug("Found this to be of type :$Apache::lonhomework::type:");