diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-05-13 16:21:27 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-05-13 16:21:27 -0700 |
commit | b31455ec31222bd0e882b76895baa794d80acb17 (patch) | |
tree | a0730fa7db3421f2ea8d14d839ec65868d0dc7a1 /httemplate/view/cust_main.cgi | |
parent | 4cc0b69a94138d85b1ff8b67966127af3c72288d (diff) |
add cust_main-custom_content config item for Globelink's custom customer view, RT#17579
Diffstat (limited to 'httemplate/view/cust_main.cgi')
-rwxr-xr-x | httemplate/view/cust_main.cgi | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index 9ce55b0b9..83f28d395 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -277,7 +277,13 @@ function areyousure(href, message) { % } % if ( $view eq 'custom' ) { +% if ( $conf->config('cust_main-custom_link') ) { <& cust_main/custom.html, $cust_main &> +% } elsif ( $conf->config('cust_main-custom_content') ) { + <& cust_main/custom_content.html, $cust_main &> +% #} else { +% # warn "custom view without cust_main-custom_link or -custom_content?"; +% } % } </DIV> @@ -326,7 +332,8 @@ $views{emt('Payment History')} = 'payment_history' $views{emt('Change History')} = 'change_history' if $curuser->access_right('View customer history'); $views{$conf->config('cust_main-custom_title') || emt('Custom')} = 'custom' - if $conf->config('cust_main-custom_link'); + if $conf->config('cust_main-custom_link') + || $conf->config('cust_main-custom_content'); $views{emt('Jumbo')} = 'jumbo'; my %viewname = reverse %views; |