[freeside-commits] freeside/httemplate/view cust_main.cgi, 1.132, 1.133
Ivan,,,
ivan at wavetail.420.am
Fri Aug 13 12:26:24 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv29542/httemplate/view
Modified Files:
cust_main.cgi
Log Message:
add cust_main-title-display_custnum, RT#9621
Index: cust_main.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main.cgi,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -w -d -r1.132 -r1.133
--- cust_main.cgi 3 Aug 2010 03:30:20 -0000 1.132
+++ cust_main.cgi 13 Aug 2010 19:26:22 -0000 1.133
@@ -1,5 +1,5 @@
<% include('/elements/header.html', {
- 'title' => "Customer: ". $cust_main->name,
+ 'title' => $title,
'nobr' => 1,
})
%>
@@ -265,6 +265,11 @@
});
die "Customer not found!" unless $cust_main;
+my $title = $cust_main->name;
+$title = '('. $cust_main->display_custnum. ") $title"
+ if $conf->exists('cust_main-title-display_custnum');
+$title = "Customer: $title";
+
#false laziness w/pref/pref.html and Conf.pm (cust_main-default_view)
tie my %views, 'Tie::IxHash',
'Basics' => 'basics',
More information about the freeside-commits
mailing list