[freeside-commits] branch FREESIDE_3_BRANCH updated. e41cdc31f1b670808c11f75affc83239a9194647

Ivan ivan at 420.am
Mon Jun 5 13:56:22 PDT 2017


The branch, FREESIDE_3_BRANCH has been updated
       via  e41cdc31f1b670808c11f75affc83239a9194647 (commit)
      from  288508f295262e33d9a99927a1602c97d28e00ef (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 e41cdc31f1b670808c11f75affc83239a9194647
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Apr 27 16:46:03 2017 -0700

    email referring customers on cancellation, RT#75756

diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index ef25c24..91c5bd3 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -1057,9 +1057,10 @@ sub cancel {
      )
   {
     my $msgnum = $conf->config('cancel_msgnum', $cust_main->agentnum);
+    my $error = '';
     if ( $msgnum ) {
       my $msg_template = qsearchs('msg_template', { msgnum => $msgnum });
-      my $error = $msg_template->send(
+      $error = $msg_template->send(
         'cust_main' => $cust_main,
         'object'    => $self,
       );
@@ -1090,8 +1091,8 @@ sub cancel {
       'cust_main' => $cust_main->referring_cust_main,
       'object'    => $self,
     );
-     #should this do something on errors?
-   }
+    #should this do something on errors?
+  }
 
   ''; #no errors
 

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

Summary of changes:
 FS/FS/cust_pkg.pm |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list