From 7637e26a0a5f422e6f3db3567d6c5e272ed1ffd4 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Tue, 28 Apr 2015 14:22:20 -0500 Subject: RT#28526: Package tab takes a long time to load with lots of packages --- httemplate/view/cust_main/packages/section.html | 1 + httemplate/view/cust_main/packages/status.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'httemplate') diff --git a/httemplate/view/cust_main/packages/section.html b/httemplate/view/cust_main/packages/section.html index e888c94ac..b196b649d 100755 --- a/httemplate/view/cust_main/packages/section.html +++ b/httemplate/view/cust_main/packages/section.html @@ -114,6 +114,7 @@ my %conf_opt = ( #for status.html 'cust_pkg-show_autosuspend' => $conf->exists('cust_pkg-show_autosuspend'), 'pkg_attached' => $pkg_attached, + 'part_pkg-delay_cancel-days' => $conf->config('part_pkg-delay_cancel-days') || 1, #for status.html pkg-balances 'pkg-balances' => $conf->exists('pkg-balances'), 'money_char' => ( $conf->config('money_char') || '$' ), diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html index 66df1ced9..690f858ad 100644 --- a/httemplate/view/cust_main/packages/status.html +++ b/httemplate/view/cust_main/packages/status.html @@ -55,7 +55,7 @@ % } else { #status: suspended % my ($cpr,$susplabel); -% if ($cust_pkg->is_status_delay_cancel) { +% if ($cust_pkg->is_status_delay_cancel(%opt)) { % $cpr = $cust_pkg->last_cust_pkg_reason('expire'); % $susplabel = 'Suspended (Cancelled)'; % } else { -- cgit v1.2.1