summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main/stateid.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/cust_main/stateid.html')
-rw-r--r--httemplate/edit/cust_main/stateid.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/edit/cust_main/stateid.html b/httemplate/edit/cust_main/stateid.html
index cc0890fe1..0f288099b 100644
--- a/httemplate/edit/cust_main/stateid.html
+++ b/httemplate/edit/cust_main/stateid.html
@@ -3,7 +3,7 @@
<TH ALIGN="right"><% $stateid_label %></TH>
<TD>
<INPUT TYPE="text" NAME="stateid" VALUE="<% $stateid %>" SIZE=12 ID="stateid">
-% if ( $FS::CurrentUser::CurrentUser->access_right( 'Unmask customer DL' )) {
+% if ( $stateid && $FS::CurrentUser::CurrentUser->access_right( 'Unmask customer DL' )) {
<& /elements/link-replace_element_text.html, {target_id => 'stateid', replace_text => $cust_main->stateid} &>
% }
</TD>