diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-03-11 18:42:14 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-03-11 18:42:14 -0800 |
commit | b85f59f20ab425b072fe1739945cce361c72004d (patch) | |
tree | c2ab28fade9607aab9ec44cfeb7a1c5e5e42a426 /httemplate | |
parent | f52ea63bd7a746a3776647a5dfbb50f9df18611d (diff) |
fix customer package browse selection, RT#39822
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/view/cust_main/packages.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index 9add4b2ad..33ffecca4 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -302,8 +302,8 @@ if ( $cgi->param('locationnum') =~ /^(\d+)$/ ) { my $total_pkgs = $cust_main->all_pkgs; -my $num_method = $hide_cancelled ? 'ncancelled_pkgs' : 'all_pkgs'; -my $num_pkgs = $cust_main->$num_method({ +my $method = $hide_cancelled ? 'ncancelled_pkgs' : 'all_pkgs'; +my $num_pkgs = $cust_main->$method({ 'addl_from' => $addl_from, 'extra_sql' => $extra_sql, }); @@ -311,7 +311,7 @@ my $num_pkgs = $cust_main->$num_method({ my $maxrecords = 10; my $offset = $cgi->param('offset') =~ /^(\d+)$/ ? $1 : 0; -my @packages = $cust_main->all_pkgs( { +my @packages = $cust_main->$method( { 'select' => "$cust_pkg_fields, $part_pkg_fields, $num_svcs", 'addl_from' => $addl_from. " LEFT JOIN part_pkg_option AS setup_option |