[freeside-commits] branch master updated. a3a077fe8c0e30de5faa531b285b45d31abdf7f3
Ivan
ivan at 420.am
Wed Jun 18 18:03:33 PDT 2014
The branch, master has been updated
via a3a077fe8c0e30de5faa531b285b45d31abdf7f3 (commit)
from f2248fc4efed88f10f74badea16cbf996ec118d1 (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 a3a077fe8c0e30de5faa531b285b45d31abdf7f3
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Jun 18 18:03:32 2014 -0700
fix (part of) 3.x performance regression on customers with tons of invoices, RT#29646, RT#5199
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 85c4bac..3113c20 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -41,11 +41,6 @@ use FS::L10N;
$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
@@ -416,8 +411,8 @@ cust_bill-default_agent_invid is set and it has a value, invnum otherwise.
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;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_bill.pm | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
More information about the freeside-commits
mailing list