Skip to content

Commit cfb690a

Browse files
authored
Merge pull request #1506 from drdrew42/feature/q-a-plugin
Hotfix? Update for WordPress Q&A plugin
2 parents 8f8bff9 + 0825ff6 commit cfb690a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/WeBWorK/ContentGenerator.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ sub feedbackMacro_form {
17111711
if ($key eq 'pg_object') {
17121712
my $tmp = $value->{body_text};
17131713
$tmp .= CGI::p(CGI::b("Note: "). CGI::i($value->{result}->{msg})) if $value->{result}->{msg} ;
1714-
$result .= CGI::hidden($key, encode_base64($tmp, "") );
1714+
$result .= CGI::hidden($key, encode_base64(Encode::encode('UTF-8', $tmp), "") );
17151715
} else {
17161716
$result .= CGI::hidden($key, $value) . "\n";
17171717
}

lib/WeBWorK/ContentGenerator/Problem.pm

+2
Original file line numberDiff line numberDiff line change
@@ -2257,6 +2257,7 @@ sub output_past_answer_button{
22572257
sub output_email_instructor{
22582258
my $self = shift;
22592259
my $r = $self->r;
2260+
my $courseName = $r->urlpath->arg("courseID");
22602261
my $problem = $self->{problem};
22612262
my %will = %{ $self->{will} };
22622263
my $pg = $self->{pg};
@@ -2265,6 +2266,7 @@ sub output_email_instructor{
22652266

22662267
print $self->feedbackMacro(
22672268
module => __PACKAGE__,
2269+
courseId => $courseName,
22682270
set => $self->{set}->set_id,
22692271
problem => $problem->problem_id,
22702272
problemPath => $problem->source_file,

0 commit comments

Comments
 (0)