[freeside-commits] branch master updated. 3d796bf211374d941bda1116ee27a0543045ea8a

Jonathan Prykop jonathan at 420.am
Fri Jan 30 22:28:17 PST 2015


The branch, master has been updated
       via  3d796bf211374d941bda1116ee27a0543045ea8a (commit)
      from  66c1457c1820264d0dce794f42cf20be768c6dc3 (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 3d796bf211374d941bda1116ee27a0543045ea8a
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Sat Jan 31 00:27:01 2015 -0600

    #30613 Can't Send E-mail (Additional fixes for upgrade)

diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm
index f84e4e5..4719caa 100644
--- a/FS/FS/Upgrade.pm
+++ b/FS/FS/Upgrade.pm
@@ -70,7 +70,7 @@ sub upgrade_config {
 
   upgrade_invoice_from($conf);
   foreach my $agent (@agents) {
-    upgrade_invoice_from($conf,$agent->agentnum);
+    upgrade_invoice_from($conf,$agent->agentnum,1);
   }
 
   my $DIST_CONF = '/usr/local/etc/freeside/default_conf/';#DIST_CONF in Makefile
@@ -175,10 +175,10 @@ sub upgrade_overlimit_groups {
 }
 
 sub upgrade_invoice_from {
-  my ($conf, $agentnum) = @_;
+  my ($conf, $agentnum, $agentonly) = @_;
   if (
-      (!$conf->config('invoice_from_name',$agentnum)) && 
-      ($conf->config('invoice_from',$agentnum) =~ /\<(.*)\>/)
+      (!$conf->exists('invoice_from_name',$agentnum,$agentonly)) && 
+      ($conf->config('invoice_from',$agentnum,$agentonly) =~ /\<(.*)\>/)
   ) {
     my $realemail = $1;
     $realemail =~ s/^\s*//; # remove leading spaces


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

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




More information about the freeside-commits mailing list