[freeside-commits] branch master updated. 083055aebf83987941affc4da3184dec0f27d2ae

Ivan ivan at 420.am
Thu Dec 10 01:57:24 PST 2015


The branch, master has been updated
       via  083055aebf83987941affc4da3184dec0f27d2ae (commit)
      from  6870babd1be7976dc8823c46a66254ee977c8cd1 (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 083055aebf83987941affc4da3184dec0f27d2ae
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Dec 10 01:57:22 2015 -0800

    avoid throwing an error on unlinked services, RT#31388

diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm
index 376ef02..0223f93 100644
--- a/FS/FS/cust_svc.pm
+++ b/FS/FS/cust_svc.pm
@@ -1252,7 +1252,7 @@ sub _check_provision_hold {
 
   # check status of cust_pkg
   my $cust_pkg = $self->cust_pkg;
-  return '' unless $cust_pkg->status eq 'on hold';
+  return '' unless $cust_pkg && $cust_pkg->status eq 'on hold';
 
   # check flag on this svc
   # small false laziness with $self->pkg_svc

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

Summary of changes:
 FS/FS/cust_svc.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)




More information about the freeside-commits mailing list