diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-12-10 01:57:25 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-12-10 01:57:25 -0800 |
commit | 457f1c94eca83b791ea4bfcb8cd43f8feeb7831c (patch) | |
tree | ba1146cb189cf949511413aa189e398209c7299c /FS/FS | |
parent | bae965143e7933331a608eb8f2a56bba0a844a3c (diff) |
avoid throwing an error on unlinked services, RT#31388
Diffstat (limited to 'FS/FS')
-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 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 |