Skip to content

Commit

Permalink
Merge pull request #1163 from drgrice1/scaffolds-no-reveal-correct-re…
Browse files Browse the repository at this point in the history
…ally

Prevent scaffolds from revealing correct answers when feedback is not permitted (really)
  • Loading branch information
Alex-Jordan authored Dec 17, 2024
2 parents f6812e5 + 4aee938 commit cda6a90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions macros/core/scaffold.pl
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,8 @@ sub add_container {
'div',
class => 'accordion-header'
. (
$iscorrect && ($main::envir{showFeedback} || $main::envir{forceShowAttemptResults})
? ' iscorrect'
: ' iswrong'
$iscorrect && (($main::envir{showFeedback} && $main::envir{showAttemptResults})
|| $main::envir{forceShowAttemptResults}) ? ' iscorrect' : ' iswrong'
)
. ($canopen ? ' canopen' : ' cannotopen'),
id => "$label-header",
Expand Down

0 comments on commit cda6a90

Please sign in to comment.