Skip to content

Commit

Permalink
Merge pull request #2662 from drgrice1/bugfix/format-rendered-debug-m…
Browse files Browse the repository at this point in the history
…essages

Fix debugging messages in the `formatRenderedProblem` method.
  • Loading branch information
pstaabp authored Feb 4, 2025
2 parents 1506512 + 313eb68 commit f1da2b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/FormatRenderedProblem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ sub formatRenderedProblem {
if $ws->c->current_route eq 'render_rpc' && ($ws->c->param('displayMode') // '') eq 'PTX';
}

# Make sure this is defined and is an array reference as saveGradeToLTI might add to it.
$rh_result->{debug_messages} = [] unless defined $rh_result && ref $rh_result eq 'ARRAY';
# Make sure $rh_result->{debug_messages} an array reference as saveGradeToLTI might add to it.
$rh_result->{debug_messages} = [] unless ref $rh_result->{debug_messages} eq 'ARRAY';

$forbidGradePassback = 1 if !$forbidGradePassback && !$submitMode;

Expand Down

0 comments on commit f1da2b1

Please sign in to comment.