summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/Conf.pm7
-rwxr-xr-xhttemplate/view/cust_main/packages.html2
2 files changed, 8 insertions, 1 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 9f1a7072b..cf6e90960 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -1821,6 +1821,13 @@ and customer address. Include units.',
},
{
+ 'key' => 'cust_main-packages-num_per_page',
+ 'section' => 'packages',
+ 'description' => 'Number of packages to display per page on customer view (default 10).',
+ 'type' => 'text',
+ },
+
+ {
'key' => 'disable_maxselect',
'section' => 'reporting',
'description' => 'Prevent changing the number of records per page.',
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html
index 43ebb282b..d78bc969b 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -308,7 +308,7 @@ my $num_pkgs = $cust_main->$method({
'extra_sql' => $extra_sql,
});
-my $maxrecords = 10;
+my $maxrecords = $conf->config('cust_main-packages-num_per_page') || 10;
my $offset = $cgi->param('offset') =~ /^(\d+)$/ ? $1 : 0;
$cgi->delete('offset');