WeBWorK Main Forum

PGML and Show Me Another

Re: PGML and Show Me Another

by Andrew Parker -
Number of replies: 0
I took some time to dig through webwork2/lib/WeBWorK/ContentGenerator/ShowMeAnother.pm

I changed line 91:

active => (!($checkAnswers or $previewAnswers) and $ce->{pg}->{options}->{enableShowMeAnother} and ($problem->{showMeAnother}>-1 or $problem->{showMeAnother}==-2)),
 

which previously didn't recognize $showMeAnother{active} when $problem{showMeAnother} was set to course default by having the value -2.