projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 32233 Show unmask widget only if a value exists to unmask
[freeside.git]
/
httemplate
/
view
/
cust_main
/
contacts.html
diff --git
a/httemplate/view/cust_main/contacts.html
b/httemplate/view/cust_main/contacts.html
index
3676592
..
11efcd5
100644
(file)
--- 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') || ' ' %>
<% $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,
<& /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') || ' ' %>
<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,
<& /elements/link-replace_element_text.html, {
target_id => 'stateid_span',
replace_text => $cust_main->stateid,