[freeside-commits] branch master updated. 33a67a59980166adf689f2f5327c7147e2cdf0bf

Ivan ivan at 420.am
Tue Feb 9 22:39:36 PST 2016


The branch, master has been updated
       via  33a67a59980166adf689f2f5327c7147e2cdf0bf (commit)
      from  f7329b766b496393064a4dd4df2515cbfbb00827 (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 33a67a59980166adf689f2f5327c7147e2cdf0bf
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Feb 9 22:39:32 2016 -0800

    optimize Reports->Customers->List Customers, RT#20173

diff --git a/FS/FS/access_user.pm b/FS/FS/access_user.pm
index 3a12ef3..72f2320 100644
--- a/FS/FS/access_user.pm
+++ b/FS/FS/access_user.pm
@@ -738,7 +738,6 @@ sub change_password_fields {
 sub locale {
   my $self = shift;
   return $self->{_locale} if exists($self->{_locale});
-warn "access_user->locale called\n";
   $self->{_locale} = $self->option('locale');
 }
 
diff --git a/htetc/handler.pl b/htetc/handler.pl
index 920da3c..2fe5d37 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -168,7 +168,7 @@ sub handler
 #    }
 
     FS::access_user_log->insert_new_path( $r->filename, time-$start_time );
-\
+
     FS::Trace->log('done');
 
     FS::Trace->dumpfile( "%%%FREESIDE_EXPORT%%%/profile/$$.".time,
diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi
index aabc0b9..2e81a4a 100755
--- a/httemplate/search/cust_main.cgi
+++ b/httemplate/search/cust_main.cgi
@@ -237,7 +237,7 @@
 %      my $part_pkg = $_->part_pkg;
 %
 %      my $pkg_comment = $part_pkg->pkg_comment( cust_pkg=>$_, nopkgpart=>1 );
-%      my $show = $curuser->default_customer_view =~ /^(jumbo|packages)$/
+%      my $show = $default_customer_view =~ /^(jumbo|packages)$/
 %                   ? ''
 %                   : ';show=packages';
 %      my $frag = "cust_pkg$pkgnum"; #hack for IE ignoring real #fragment
@@ -320,6 +320,8 @@ my $maxrecords = $conf->config('maxsearchrecordsperpage');
 # summarize more than this many services of the same svcpart
 my $large_pkg_size = $conf->config('cust_pkg-large_pkg_size') || 0;
 
+my $default_customer_view = $curuser->default_customer_view;
+
 my $limit = '';
 $limit .= "LIMIT $maxrecords" if $maxrecords;
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/access_user.pm            |    1 -
 htetc/handler.pl                |    2 +-
 httemplate/search/cust_main.cgi |    4 +++-
 3 files changed, 4 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list