X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fnotes.html;h=c02af386616f6cedd02a3868676340fed93fc1f1;hb=11bbf29de447fe39e9d7155fe280a0df70fa8c3c;hp=7a19f8b3833103556581b9b96e05298c2247d72d;hpb=16fe3ab085213efe13680a7d2d8c50e38cf8750a;p=freeside.git diff --git a/httemplate/view/cust_main/notes.html b/httemplate/view/cust_main/notes.html index 7a19f8b38..c02af3866 100755 --- a/httemplate/view/cust_main/notes.html +++ b/httemplate/view/cust_main/notes.html @@ -16,15 +16,6 @@ % my $notecount = scalar($cust_main->notes(0)); % if ( ! $conf->exists('cust_main-disable_notes') || $notecount) { -% unless ( $view eq 'notes' && $cust_main->comments !~ /[^\s\n\r]/ ) { -

- <% mt('Notes') |h %> -

- -% } - -
- % # actually display notes <& notes/notes.html, 'cust_main' => $cust_main &>
@@ -39,7 +30,13 @@ ">(<% mt('Show active attachments') |h %>) -% } elsif($curuser->access_right('View deleted attachments')) { +% } elsif ( $curuser->access_right('View deleted attachments') +% && FS::Record->scalar_sql( +% 'SELECT 1 FROM cust_attachment WHERE custnum = ? '. +% ' AND disabled IS NOT NULL AND disabled > 0 LIMIT 1', +% $custnum ) +% ) +% { ">(<% mt('Show deleted attachments') |h %>)