summaryrefslogtreecommitdiff
path: root/FS/FS/svc_Common.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-10-19 12:19:08 -0700
committerIvan Kohler <ivan@freeside.biz>2014-10-19 12:19:08 -0700
commitc9994d080422aec5188ee08851a493ce1794c3b7 (patch)
treeb606a51961c66cc687c5386b9b3c5dc8547d65c9 /FS/FS/svc_Common.pm
parent9ef031dc275339f9f2527ff70eca21739a99eb32 (diff)
parent6205135803080b92127d4b1b52b4d4729d08a09f (diff)
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
Diffstat (limited to 'FS/FS/svc_Common.pm')
-rw-r--r--FS/FS/svc_Common.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm
index 659255eaa..9c2592213 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 : '';