diff --git a/lib/WeBWorK/ContentGenerator/Hardcopy.pm b/lib/WeBWorK/ContentGenerator/Hardcopy.pm index 08ee8a9eaa..be7aff7c50 100644 --- a/lib/WeBWorK/ContentGenerator/Hardcopy.pm +++ b/lib/WeBWorK/ContentGenerator/Hardcopy.pm @@ -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( diff --git a/templates/ContentGenerator/Hardcopy/form.html.ep b/templates/ContentGenerator/Hardcopy/form.html.ep index 32f7cd1998..807858b534 100644 --- a/templates/ContentGenerator/Hardcopy/form.html.ep +++ b/templates/ContentGenerator/Hardcopy/form.html.ep @@ -55,7 +55,7 @@
<%== 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) ) =%>