X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fsvc_Common.pm;h=fbb9df7c2b05f77fa2eee562831decdca9b48328;hb=4a826597546477c5f3a6857d1851721568858403;hp=56567e8ced9a056d0c126d51a58f7faaa301f0cc;hpb=63d22d5cf01cb22b92ef7393388ea175d675b13e;p=freeside.git diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm index 56567e8ce..fbb9df7c2 100644 --- a/FS/FS/svc_Common.pm +++ b/FS/FS/svc_Common.pm @@ -336,6 +336,7 @@ sub _check_duplcate { ''; } sub preinsert_hook { ''; } sub table_dupcheck_fields { (); } sub prereplace_hook { ''; } +sub prereplace_hook_first { ''; } sub predelete_hook { ''; } sub predelete_hook_first { ''; } @@ -806,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 : ''; @@ -1390,7 +1394,7 @@ sub search { #custnum if ( $params->{'custnum'} =~ /^(\d+)$/ && $1 ) { - push @where, "custnum = $1"; + push @where, "cust_pkg.custnum = $1"; } #customer status