summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2011-07-27 23:41:58 +0000
committerivan <ivan>2011-07-27 23:41:58 +0000
commit0835b63c6fdd56c14f4a7c8e2541e734b7687e0f (patch)
treebc440ace316bef5c0ea6a922f7472994f0626681 /httemplate
parentc52f1b6999b57cc3cb52fe8e4304d0bbfbbbb2f2 (diff)
fix package report title i18n w/per-customer package reports, RT#12515
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/search/report_cust_pkg.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html
index d9b6cd7a1..bbd9f6bc4 100755
--- a/httemplate/search/report_cust_pkg.html
+++ b/httemplate/search/report_cust_pkg.html
@@ -1,4 +1,4 @@
-<% include('/elements/header.html', $title ) %>
+<% include('/elements/header.html', mt($title, @title_arg) %>
<FORM ACTION="cust_pkg.cgi" METHOD="GET">
<INPUT TYPE="hidden" NAME="magic" VALUE="bill">
@@ -159,6 +159,8 @@ die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('List packages');
my $title = 'Package Report';
+#false laziness w/report_cust_bill.html
+my @title_arg = ();
my $custnum = '';
if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
@@ -168,7 +170,8 @@ if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
'hashref' => { 'custnum' => $custnum },
'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,
}) or die "unknown custnum $custnum";
- $title .= ': '. $cust_main->name;
+ $title .= ': [_1]';
+ push @title_arg, $cust_main->name;
}
</%init>