diff options
author | Mitch Jackson <mitch@freeside.biz> | 2018-06-15 21:14:44 -0500 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2018-06-15 21:16:26 -0500 |
commit | 7bf6dafb0da4a525388a6f145dd0a904eddcec14 (patch) | |
tree | bbd382d7a2969de7d80d82089631acc224fa806b /httemplate/view | |
parent | ca8a483f90e0c9ee4a1d2e65ddee07278ff48a9d (diff) |
RT# 32233 Show unmask widget only if a value exists to unmask
Diffstat (limited to 'httemplate/view')
-rw-r--r-- | httemplate/view/cust_main/contacts.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index 367659293..11efcd568 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -34,7 +34,11 @@ <% $conf->exists('unmask_ss') ? $cust_main->ss : $cust_main->masked('ss') || ' ' %> -% if ( !$conf->exists('unmask_ss') && $FS::CurrentUser::CurrentUser->access_right('Unmask customer SSN')) { +% if ( +% $cust_main->ss +% && !$conf->exists('unmask_ss') +% && $FS::CurrentUser::CurrentUser->access_right('Unmask customer SSN') +% ) { <& /elements/link-replace_element_text.html, { target_id => 'ss_span', replace_text => $cust_main->ss, @@ -186,7 +190,10 @@ <TD> <span id="stateid_span" style="white-space:nowrap;"> <% $cust_main->masked('stateid') || ' ' %> -% if ( $FS::CurrentUser::CurrentUser->access_right('Unmask customer DL')) { +% if ( +% $cust_main->stateid +% && $FS::CurrentUser::CurrentUser->access_right('Unmask customer DL') +% ) { <& /elements/link-replace_element_text.html, { target_id => 'stateid_span', replace_text => $cust_main->stateid, |