X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-did.html;h=2aa712f794e3c121d9188774c1e239f89bdc6be3;hp=987ade6897eeba6aecef4b9714b319eb497a099b;hb=8fe6c833babe44bb707b8c47273b04fe39edfbaf;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984 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 ) { ><% $opt{'formatted_value'} || $opt{'curr_value'} || $opt{'value'} |h %> @@ -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; +