projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
033547b
)
fix (part of) 3.x performance regression on customers with tons of invoices, RT#29646...
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 19 Jun 2014 01:03:34 +0000
(18:03 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 19 Jun 2014 01:03:34 +0000
(18:03 -0700)
FS/FS/cust_bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
cfefc95
..
fda1c72
100644
(file)
--- a/
FS/FS/cust_bill.pm
+++ b/
FS/FS/cust_bill.pm
@@
-44,11
+44,6
@@
use FS::L10N;
$DEBUG = 0;
$me = '[FS::cust_bill]';
$DEBUG = 0;
$me = '[FS::cust_bill]';
-#ask FS::UID to run this stuff for us later
-FS::UID->install_callback( sub {
- my $conf = new FS::Conf; #global
-} );
-
=head1 NAME
FS::cust_bill - Object methods for cust_bill records
=head1 NAME
FS::cust_bill - Object methods for cust_bill records
@@
-419,8
+414,8
@@
cust_bill-default_agent_invid is set and it has a value, invnum otherwise.
sub display_invnum {
my $self = shift;
sub display_invnum {
my $self = shift;
- my $conf = $self->conf;
-
if ( $conf->exists('cust_bill-default_agent_invid') && $self->agent_invid )
{
+ if ( $self->agent_invid
+
&& FS::Conf->new->exists('cust_bill-default_agent_invid') )
{
return $self->agent_invid;
} else {
return $self->invnum;
return $self->agent_invid;
} else {
return $self->invnum;