[freeside-commits] freeside/httemplate/view/elements svc_Common.html, 1.9, 1.10
Ivan,,,
ivan at wavetail.420.am
Fri May 8 18:44:10 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/view/elements
In directory wavetail.420.am:/tmp/cvs-serv9396/view/elements
Modified Files:
svc_Common.html
Log Message:
use service-def specific labels, at least for service pages that use {view,edit}/elements/svc_Common.html RT#4081
Index: svc_Common.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/elements/svc_Common.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- svc_Common.html 15 Apr 2009 07:14:11 -0000 1.9
+++ svc_Common.html 9 May 2009 01:44:08 -0000 1.10
@@ -145,6 +145,14 @@
my $part_svc = $cust_svc->part_svc;
+ #false laziness w/edit/svc_Common.html
+ #override default labels with service-definition labels if applicable
+ my $labels = $opt{labels}; #not -> here
+ foreach my $field ( keys %$labels ) {
+ my $col = $part_svc->part_svc_column($field);
+ $labels->{$field} = $col->columnlabel if $col->columnlabel !~ /^\S*$/;
+ }
+
my $pkgnum = $cust_svc->pkgnum;
my($cust_pkg, $custnum);
More information about the freeside-commits
mailing list