[freeside-commits] branch FREESIDE_3_BRANCH updated. 9faf849ef1212884ff126c32dc1beea6b9b5f1e2

Ivan ivan at 420.am
Sat Jan 18 17:20:23 PST 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  9faf849ef1212884ff126c32dc1beea6b9b5f1e2 (commit)
      from  81acd758e931c46a085e048f9557b0960aa7b651 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9faf849ef1212884ff126c32dc1beea6b9b5f1e2
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Jan 18 17:20:21 2014 -0800

    fix PBX in a non-voip package, fallout from RT#16723

diff --git a/httemplate/view/svc_pbx.cgi b/httemplate/view/svc_pbx.cgi
index a1afeb2..ff0d285 100644
--- a/httemplate/view/svc_pbx.cgi
+++ b/httemplate/view/svc_pbx.cgi
@@ -41,7 +41,7 @@ my $html_foot = sub {
   }
   my $voip_pkg = @voip_pkgs[0];
 
-  my $cdr_svc_method = $voip_pkg->option('cdr_svc_method')
+  my $cdr_svc_method = ( $voip_pkg && $voip_pkg->option('cdr_svc_method') )
                        || 'svc_phone.phonenum';
   return '' unless $cdr_svc_method =~ /^svc_pbx\.(.*)$/;
   my $field = $1;

-----------------------------------------------------------------------

Summary of changes:
 httemplate/view/svc_pbx.cgi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list