From 567b77e7f4af0583cc831291f71caa8d47ff91af Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Wed, 13 Nov 2019 16:17:11 -0600 Subject: [PATCH] Use MathQuill answer boxes on "Show me another" problems if the option to use MathQuill answer boxes is enabled. Currently the input is hidden and no MathQuill answer box is injected. --- lib/WeBWorK/ContentGenerator/ShowMeAnother.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/WeBWorK/ContentGenerator/ShowMeAnother.pm b/lib/WeBWorK/ContentGenerator/ShowMeAnother.pm index 0a2c304fa8..bd411ad46c 100644 --- a/lib/WeBWorK/ContentGenerator/ShowMeAnother.pm +++ b/lib/WeBWorK/ContentGenerator/ShowMeAnother.pm @@ -326,6 +326,8 @@ sub pre_header_initialize { $self->{showMeAnother} = \%showMeAnother; $self->{pg} = $pg; + WeBWorK::ContentGenerator::ProblemUtil::ProblemUtil::insert_mathquill_responses($self, $pg) + if ($self->{will}->{useMathQuill}); } # We disable showOldAnswers because old answers are answers to the original