[freeside-commits] branch FREESIDE_3_BRANCH updated. 79a01ef71d4522b59c739fb08c231624df0adce0

Mark Wells mark at 420.am
Wed Oct 15 15:34:28 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  79a01ef71d4522b59c739fb08c231624df0adce0 (commit)
      from  81ccfc6f631270015f2ae11d4019c4b8b9ce7514 (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 79a01ef71d4522b59c739fb08c231624df0adce0
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Oct 15 15:34:09 2014 -0700

    don't try to assign inventory during an upgrade, #30900

diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm
index 659255e..9c25922 100644
--- a/FS/FS/svc_Common.pm
+++ b/FS/FS/svc_Common.pm
@@ -807,6 +807,9 @@ If there is an error, returns the error, otherwise returns false.
 =cut
 
 sub set_auto_inventory {
+  # don't try to do this during an upgrade
+  return '' if $FS::CurrentUser::upgrade_hack;
+
   my $self = shift;
   my $old = @_ ? shift : '';
 

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

Summary of changes:
 FS/FS/svc_Common.pm |    3 +++
 1 file changed, 3 insertions(+)




More information about the freeside-commits mailing list