fix reverted changes. grr. RT#4964
authorivan <ivan>
Thu, 13 Aug 2009 09:25:02 +0000 (09:25 +0000)
committerivan <ivan>
Thu, 13 Aug 2009 09:25:02 +0000 (09:25 +0000)
httemplate/view/cust_main.cgi

index bbdfe51..3e5a8ce 100755 (executable)
@@ -113,6 +113,7 @@ Comments
 % if ( ! $conf->exists('cust_main-disable_notes') || $notecount) {
 
 %   unless ( $view eq 'notes' && $cust_main->comments !~ /[^\s\n\r]/ ) {
+      <BR>
       <A NAME="cust_main_note"><FONT SIZE="+2">Notes</FONT></A><BR>
 %   }
 
@@ -206,6 +207,10 @@ Comments
 
 % }
 
+% if ( $view eq 'change_history' ) { #  || $view eq 'jumbo'     
+<% include('cust_main/change_history.html', $cust_main ) %>     
+% }
+
 <% include('/elements/footer.html') %>
 <%init>
 
@@ -243,7 +248,8 @@ $views{'Tickets'}         =  'tickets'
 $views{'Packages'}        =  'packages';
 $views{'Payment History'} =  'payment_history'
                                unless $conf->config('payby-default' eq 'HIDE');
-#$views{'Change History'}  =  '';
+$views{'Change History'}  =  'change_history'
+  if $curuser->access_right('View customer history');
 $views{'Jumbo'}           =  'jumbo';
 
 my %viewname = reverse %views;