projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4b71bc
)
fix package report title i18n w/per-customer package reports, RT#12515
author
ivan
<ivan>
Wed, 27 Jul 2011 23:41:59 +0000
(23:41 +0000)
committer
ivan
<ivan>
Wed, 27 Jul 2011 23:41:59 +0000
(23:41 +0000)
httemplate/search/report_cust_pkg.html
patch
|
blob
|
history
diff --git
a/httemplate/search/report_cust_pkg.html
b/httemplate/search/report_cust_pkg.html
index
d9b6cd7
..
bbd9f6b
100755
(executable)
--- 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">
<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';
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+)$/ ) {
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";
'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>
}
</%init>