From: Sam H. v. a. <we...@ma...> - 2008-04-29 19:45:08
|
Log Message: ----------- eliminate 'odd number of hash elements' error when showHints or showSolutions are not checked. Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator/Instructor: SetMaker.pm Revision Data ------------- Index: SetMaker.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm,v retrieving revision 1.82 retrieving revision 1.83 diff -Llib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm -Llib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm -u -r1.82 -r1.83 --- lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm +++ lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm @@ -1293,6 +1293,9 @@ CGI::em("You are not authorized to access the Instructor tools."))); } + my $showHints = $r->param('showHints'); + my $showSolutions = $r->param('showSolutions'); + ########## Extract information computed in pre_header_initialize my $first_shown = $self->{first_shown}; @@ -1309,8 +1312,8 @@ user => $user, problem_list => [@pg_files[$first_shown..$last_shown]], displayMode => $r->param('mydisplayMode'), - showHints => $r->param('showHints'), - showSolutions => $r->param('showSolutions'), + showHints => $showHints, + showSolutions => $showSolutions, ); } |