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 /FS | |
parent | 4cc0b69a94138d85b1ff8b67966127af3c72288d (diff) |
add cust_main-custom_content config item for Globelink's custom customer view, RT#17579
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Conf.pm | 7 | ||||
-rw-r--r-- | FS/FS/cust_pkg.pm | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index a1fda682f..da8717e25 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -4784,6 +4784,13 @@ and customer address. Include units.', }, { + 'key' => 'cust_main-custom_content', + 'section' => 'UI', + 'description' => 'As an alternative to cust_main-custom_link (leave it blank), the contant to display on this customer page, one item per line. Available iems are: small_custview, birthdate, spouse_birthdate, svc_acct, svc_phone and svc_external.', + 'type' => 'textarea', + }, + + { 'key' => 'cust_main-custom_title', 'section' => 'UI', 'description' => 'Title for the "Custom" tab in the View Customer page.', diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 1d4a90c56..788b1d363 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -2070,7 +2070,7 @@ sub cust_svc { } if ( $opt{'svcdb'} ) { $search{addl_from} = ' LEFT JOIN part_svc USING ( svcpart ) '; - $search{hashref}->{svcdb} = $opt{'svcdb'}; + $search{extra_sql} = ' AND svcdb = '. dbh->quote( $opt{'svcdb'} ); } cluck "cust_pkg->cust_svc called" if $DEBUG > 2; |