--- loncom/homework/lonsimpleproblemedit.pm 2003/11/04 16:44:50 1.7 +++ loncom/homework/lonsimpleproblemedit.pm 2003/11/08 02:56:09 1.9 @@ -1,7 +1,7 @@ # The LearningOnline Network # Simple Problem Parameter Setting "Editor" # -# $Id: lonsimpleproblemedit.pm,v 1.7 2003/11/04 16:44:50 www Exp $ +# $Id: lonsimpleproblemedit.pm,v 1.9 2003/11/08 02:56:09 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -61,6 +61,7 @@ sub rawrendering { $ENV{'user.name'}=time; $ENV{'user.domain'}=time; my $result = &Apache::lonxml::xmlparse($request,'web', $problem); + undef($Apache::lonhomework::parsing_a_problem); $ENV{'user.name'}=$uname; $ENV{'user.domain'}=$udom; $result=~s/^.*\
]*\>//si; @@ -70,9 +71,10 @@ sub rawrendering { sub questiontext { my $text=$qparms{$prefix.'questiontext'}; + my $qt=&mt('Question Text'); return (<'); @@ -245,7 +254,7 @@ ENDDOCUMENT $r->print( '
Add new option: '. + $options.'" />'.&mt('Add new option').': '. ''. &mt('Delete an option').': '. &Apache::loncommon::select_form('','delopt',('' => '',%optionshash)). |