Skip to content

Commit

Permalink
Merge pull request openwebwork#1931 from somiaj/issue-hardcopy-fix
Browse files Browse the repository at this point in the history
Fix issue with generating a single hardcopy test version.
  • Loading branch information
drgrice1 authored Apr 9, 2023
2 parents 8422801 + 27ab3df commit ffef283
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/WeBWorK/ContentGenerator/Hardcopy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ sub display_form ($c) {
$canShowCorrectAnswers = $perm_view_answers
|| (defined($mergedSet) && after($mergedSet->answer_date));
}
# Make display for versioned sets a bit nicer
$selected_set_id =~ s/,v(\d+)$/ (version $1)/;
}

return $c->include(
Expand Down
2 changes: 1 addition & 1 deletion templates/ContentGenerator/Hardcopy/form.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<p>
<%== maketext(
'Download hardcopy of set [_1] for [_2]?',
tag('span', dir => 'ltr', format_set_name_display($selected_set_id)),
tag('span', dir => 'ltr', format_set_name_display($selected_set_id =~ s/,v(\d+)$/ (version $1)/r)),
join(' ', $user->first_name, $user->last_name)
) =%>
</p>
Expand Down

0 comments on commit ffef283

Please sign in to comment.