diff options
author | Mark Wells <mark@freeside.biz> | 2014-10-15 15:34:20 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-10-15 15:34:20 -0700 |
commit | a21bd79010b9a3a5e1f9e19dca673dcb38f35334 (patch) | |
tree | d28c7b10462a3a3a03813c6ef26d43ee83423bc6 /FS/FS/svc_Common.pm | |
parent | 83e442de6a041fa3b7580d53912eeb1490ddf47c (diff) |
don't try to assign inventory during an upgrade, #30900
Diffstat (limited to 'FS/FS/svc_Common.pm')
-rw-r--r-- | FS/FS/svc_Common.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm index 4a2d617..e459172 100644 --- a/FS/FS/svc_Common.pm +++ b/FS/FS/svc_Common.pm @@ -804,6 +804,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 : ''; |