diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-12-10 01:57:28 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-12-10 01:57:28 -0800 |
commit | a32c137aecd37144e276c3339f66a15318c80698 (patch) | |
tree | 8630d4f675956bb1ba1ce4d3496b7d399c4f3de8 | |
parent | e7bad3b31830cd1c838c607a3336413a4c5ed50c (diff) |
avoid throwing an error on unlinked services, RT#31388
-rw-r--r-- | FS/FS/cust_svc.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm index 9d7eb7a71..29298b8d0 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 |