[freeside-commits] freeside/httemplate/edit svc_broadband.cgi, 1.27, 1.28
Ivan,,,
ivan at wavetail.420.am
Wed Jan 18 17:20:36 PST 2012
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv23796
Modified Files:
svc_broadband.cgi
Log Message:
fix error in svc_broadband, RT#16137
Index: svc_broadband.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/svc_broadband.cgi,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -w -d -r1.27 -r1.28
--- svc_broadband.cgi 28 Dec 2011 23:55:32 -0000 1.27
+++ svc_broadband.cgi 19 Jan 2012 01:20:34 -0000 1.28
@@ -167,6 +167,13 @@
my $field_callback = sub {
my ($cgi, $object, $fieldref) = @_;
+ unless ( $part_svc ) {
+ my $svcpart = $object->svcnum ? $object->cust_svc->svcpart;
+ : $cgi->param('svcpart');
+ $part_svc = qsearchs( 'part_svc', { svcpart => $svcpart } );
+ die "No part_svc entry for svcpart $svcpart!" unless $part_svc;
+ }
+
my $columndef = $part_svc->part_svc_column($fieldref->{'field'});
if ($columndef->columnflag eq 'F') {
$fieldref->{'type'} = length($columndef->columnvalue)
More information about the freeside-commits
mailing list