[freeside-commits] freeside/httemplate/search report_cust_pkg.html, 1.18, 1.19

Ivan,,, ivan at wavetail.420.am
Wed Jul 27 16:42:00 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv1131

Modified Files:
	report_cust_pkg.html 
Log Message:
fix package report title i18n w/per-customer package reports, RT#12515

Index: report_cust_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_cust_pkg.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -w -d -r1.18 -r1.19
--- report_cust_pkg.html	21 Jun 2011 22:14:20 -0000	1.18
+++ report_cust_pkg.html	27 Jul 2011 23:41:58 -0000	1.19
@@ -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 @@
   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 @@
     '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>



More information about the freeside-commits mailing list