[freeside-commits] freeside/FS/FS Maestro.pm,1.3,1.4
Ivan,,,
ivan at wavetail.420.am
Sat Jun 26 13:50:04 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv9911
Modified Files:
Maestro.pm
Log Message:
find svc_pbx service correctly and cope anyway if it isn't there, RT#8712
Index: Maestro.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Maestro.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- Maestro.pm 26 Jun 2010 20:46:18 -0000 1.3
+++ Maestro.pm 26 Jun 2010 20:50:02 -0000 1.4
@@ -37,7 +37,7 @@
my $cust_svc_pbx = $cust_svc_pbx[0];
- my $svc_pbx = $cust_svc_pbx->svc_X;
+ my $svc_pbx = $cust_svc_pbx->svc_x;
###
# find "outbound service" y/n
@@ -71,8 +71,8 @@
'status' => substr($cust_main->ucfirst_status,0,1), #what they asked for..
'name' => $cust_main->name,
'email' => $cust_main->invoicing_list_emailonly_scalar,
- 'max_lines' => $svc_pbx->max_extensions,
- 'max_simultaneous' => $svc_pbx->max_simultaneous,
+ 'max_lines' => $svc_pbx ? $svc_pbx->max_extensions : '',
+ 'max_simultaneous' => $svc_pbx ? $svc_pbx->max_simultaneous : '',
'outbound_service' => $outbound_service,
'good_till' => $good_till,
'products' => [ map $_->pkgpart, grep !$_->get('cancel'), @cust_pkg ],
More information about the freeside-commits
mailing list