X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_main.cgi;fp=httemplate%2Fsearch%2Fcust_main.cgi;h=aca2558851abf6c97be5be5346800a614d3cef28;hp=b70bb9ae905f72ef25446c3c4f7d3d510c11d547;hb=ba56e454035928299203d26ab5f57698ac80657e;hpb=5fd8c24bf8752b0198ff3daf9f1290332e53caf2 diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index b70bb9ae9..aca255885 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(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;