summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-did.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-01-25 19:47:57 -0800
committerIvan Kohler <ivan@freeside.biz>2013-01-25 19:47:57 -0800
commitc2cd954736936c7b872229f5c0eea7e7689f170b (patch)
tree8f391af61ce257924737a7049c64e329573a8c08 /httemplate/elements/tr-select-did.html
parentd54e4b6ad9ddd6a753e81765d27ee285f7defbb0 (diff)
allow manual override of phone number, RT#19883
Diffstat (limited to 'httemplate/elements/tr-select-did.html')
-rw-r--r--httemplate/elements/tr-select-did.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/tr-select-did.html b/httemplate/elements/tr-select-did.html
index 987ade689..2aa712f79 100644
--- a/httemplate/elements/tr-select-did.html
+++ b/httemplate/elements/tr-select-did.html
@@ -1,6 +1,6 @@
<% include('tr-td-label.html', @_ ) %>
-% if ( $opt{'curr_value'} ne '' && $use_selector ) {
+% if ( $use_selector && $opt{'curr_value'} ne '' && ! $can_edit ) {
<TD BGCOLOR="#dddddd" <% $cell_style %>><% $opt{'formatted_value'} || $opt{'curr_value'} || $opt{'value'} |h %></TD>
@@ -38,4 +38,6 @@ if ( scalar(@exports) > 1 ) {
my $use_selector = scalar(@exports) ? 1 : 0;
+my $can_edit = scalar(@exports) && $exports[0]->get_dids_can_edit;
+
</%init>