[freeside-commits] branch FREESIDE_3_BRANCH updated. a32c137aecd37144e276c3339f66a15318c80698

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


The branch, FREESIDE_3_BRANCH has been updated
       via  a32c137aecd37144e276c3339f66a15318c80698 (commit)
      from  e7bad3b31830cd1c838c607a3336413a4c5ed50c (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 a32c137aecd37144e276c3339f66a15318c80698
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Dec 10 01:57:28 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 9d7eb7a..29298b8 100644
--- a/FS/FS/cust_svc.pm
+++ b/FS/FS/cust_svc.pm
@@ -1119,7 +1119,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