[freeside-commits] branch FREESIDE_4_BRANCH updated. 8fa3c92544cc617ea696dee9dfdce3f9ed6b2c99
Ivan
ivan at 420.am
Sun Aug 28 18:52:25 PDT 2016
The branch, FREESIDE_4_BRANCH has been updated
via 8fa3c92544cc617ea696dee9dfdce3f9ed6b2c99 (commit)
from a6f2325978198b4e744d9c66427bcc37dd3fcdab (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 8fa3c92544cc617ea696dee9dfdce3f9ed6b2c99
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Aug 28 18:52:21 2016 -0700
set the number of packages per page on customer view, RT#72089
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index a391a98..d12a86e 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -1844,6 +1844,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 43ebb28..d78bc96 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');
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Conf.pm | 7 +++++++
httemplate/view/cust_main/packages.html | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list