[freeside-commits] branch master updated. f5a3626fdc2ff793648cebc86f96bf3eac08cc65

Ivan ivan at 420.am
Mon Aug 6 17:01:01 PDT 2012


The branch, master has been updated
       via  f5a3626fdc2ff793648cebc86f96bf3eac08cc65 (commit)
      from  0d8eb2d4d4a372680d0fa564fbfcba0d6674b259 (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 f5a3626fdc2ff793648cebc86f96bf3eac08cc65
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Aug 6 17:00:55 2012 -0700

    eliminate warnings

diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 1da1f0f..3742bfd 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -454,8 +454,10 @@ sub insert {
     warn "  setting $l.custnum\n"
       if $DEBUG > 1;
     my $loc = $self->$l;
-    $loc->set(custnum => $self->custnum);
-    $error ||= $loc->replace;
+    unless ( $loc->custnum ) {
+      $loc->set(custnum => $self->custnum);
+      $error ||= $loc->replace;
+    }
 
     if ( $error ) {
       $dbh->rollback if $oldAutoCommit;

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

Summary of changes:
 FS/FS/cust_main.pm |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list