[freeside-commits] branch FREESIDE_4_BRANCH updated. b2e645b79aab7fca4ce4d2305ce4c95f093008d5

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


The branch, FREESIDE_4_BRANCH has been updated
       via  b2e645b79aab7fca4ce4d2305ce4c95f093008d5 (commit)
      from  8ef6c9e662070ca25a12e9c6715208b0a84d70e9 (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 b2e645b79aab7fca4ce4d2305ce4c95f093008d5
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Apr 28 08:25:52 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