[freeside-commits] freeside/httemplate/edit svc_broadband.cgi, 1.24.2.3, 1.24.2.4
Ivan,,,
ivan at wavetail.420.am
Wed Jan 18 17:20:32 PST 2012
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv23762
Modified Files:
Tag: FREESIDE_2_3_BRANCH
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.24.2.3
retrieving revision 1.24.2.4
diff -u -w -d -r1.24.2.3 -r1.24.2.4
--- svc_broadband.cgi 28 Dec 2011 23:56:20 -0000 1.24.2.3
+++ svc_broadband.cgi 19 Jan 2012 01:20:30 -0000 1.24.2.4
@@ -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