Skip to content

Commit e8c293f

Browse files
authored
Merge pull request #2949 from drgrice1/bugfix/show-top-warn-pgcore-warnings
Fix a minor issue resulting from #2935.
2 parents 0ec388f + 057df45 commit e8c293f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/WeBWorK/ContentGenerator/GatewayQuiz.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ async sub getProblemHTML ($c, $effectiveUser, $set, $formFields, $mergedProblem)
15121512
if $c->{can}{checkAnswers}
15131513
&& (!$c->{submitAnswers} || defined $c->param('problem_data_' . $mergedProblem->problem_id));
15141514

1515-
$c->stash->{haveProblemWarnings} = 1 if $pg->{warnings} || @{ $pg->{pgwarning} // [] };
1515+
$c->stash->{haveProblemWarnings} = 1 if $pg->{warnings} || @{ $pg->{warning_messages} // [] };
15161516

15171517
return $pg;
15181518
}

templates/ContentGenerator/Problem.html.ep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
% stash->{footerWidthClass} = 'col-lg-10';
6666
%
6767
<%== $c->post_header_text =%>
68-
% if ($c->{pg}{warnings} || @{ $c->{pgwarning} // [] }) {
68+
% if ($c->{pg}{warnings} || @{ $c->{pg}{warning_messages} // [] }) {
6969
<div class="row g-0 mb-2">
7070
<div class="col-12 alert alert-danger m-0">
7171
<%== maketext('<strong>Warning</strong>: There may be something wrong with this question. '

0 commit comments

Comments
 (0)