[freeside-commits] branch master updated. 512dd310b4095d5163913acaeb9a6df34d882f6f

Ivan ivan at 420.am
Fri Apr 28 08:25:51 PDT 2017


The branch, master has been updated
       via  512dd310b4095d5163913acaeb9a6df34d882f6f (commit)
      from  7b6aaca51606e017c8f2a2c0f2de393bb817adec (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 512dd310b4095d5163913acaeb9a6df34d882f6f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Apr 28 08:25:50 2017 -0700

    don't error out with a vitely export disconnected from any services, RT#75736

diff --git a/FS/FS/part_export/vitelity.pm b/FS/FS/part_export/vitelity.pm
index 22f9ba7..cef9ae8 100644
--- a/FS/FS/part_export/vitelity.pm
+++ b/FS/FS/part_export/vitelity.pm
@@ -474,7 +474,10 @@ sub _export_unsuspend {
 sub check_lnp {
   my $self = shift;
 
-  my $in_svcpart = 'IN ('. join( ',', map $_->svcpart, $self->export_svc). ')';
+  my @export_svc = $self->export_svc;
+  return unless @export_svc;
+
+  my $in_svcpart = 'IN ('. join( ',', map $_->svcpart, @export_svc). ')';
 
   foreach my $svc_phone (
     qsearch({ 'table'     => 'svc_phone',

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

Summary of changes:
 FS/FS/part_export/vitelity.pm |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list