--- loncom/homework/lonsimpleproblemedit.pm 2009/09/24 00:50:03 1.26 +++ loncom/homework/lonsimpleproblemedit.pm 2009/10/16 17:23:51 1.28 @@ -1,7 +1,7 @@ # The LearningOnline Network # Simple Problem Parameter Setting "Editor" # -# $Id: lonsimpleproblemedit.pm,v 1.26 2009/09/24 00:50:03 truskell Exp $ +# $Id: lonsimpleproblemedit.pm,v 1.28 2009/10/16 17:23:51 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -40,7 +40,6 @@ use LONCAPA; my %qparms; my $prefix; -my $weightprefix; my $qtype; sub evaloptionhash { @@ -142,11 +141,11 @@ sub foil { my $spell_link= &Apache::lonhtmlcommon::spelllink('simpleedit',"text$number"); return (< +
$lt{'foil'}
$lt{'value'}: $selectvalue$lt{'pos'}: $selectposition
$lt{'text'}:
- +
$spell_link
@@ -193,7 +192,7 @@ sub handler { # ------------------------------------------------ Prefix for everything stored $prefix=$env{'request.course.id'}.'.'.$symb.'.0.'; #------------------------------------------------- Prefix for storing weight of Problem Parts - $weightprefix=$env{'request.course.id'}.'.'.$symb.'.'; + my $weightprefix=$env{'request.course.id'}.'.'.$symb.'.'; # ---------------------------------------------------------- Anything to store? @@ -319,7 +318,7 @@ sub handler { ':   '. &Apache::loncommon::select_form ($randomize,'randomize',%randomizes). - ''); + ''); # Option Response: Options if ($qtype eq 'option') { my $options=$qparms{$prefix.'options'};