diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-04-28 14:22:20 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-04-29 15:18:17 -0500 |
commit | 7637e26a0a5f422e6f3db3567d6c5e272ed1ffd4 (patch) | |
tree | a0298072beaf9aabd7778ba536c38ff667a37e0f /httemplate | |
parent | 601c221a20048eb96fa584bda348fda5f7d9f86f (diff) |
RT#28526: Package tab takes a long time to load with lots of packages
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/view/cust_main/packages/section.html | 1 | ||||
-rw-r--r-- | httemplate/view/cust_main/packages/status.html | 2 |
2 files changed, 2 insertions, 1 deletions
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 { |