From: Ivan Kohler Date: Tue, 10 Mar 2015 22:20:36 +0000 (-0700) Subject: better legacy history display, RT#29311 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=cd2cf35ac3da7de5ad8b6055b345ace3a770d647 better legacy history display, RT#29311 --- diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html index d94142782..e56bd1d75 100644 --- a/httemplate/elements/change_history_common.html +++ b/httemplate/elements/change_history_common.html @@ -46,10 +46,10 @@ -% my $otaker; +% my $otaker = ''; % if ( $item->history_usernum ) { % $access_user{ $item->history_usernum } ||= -% qsearchs('access_user', { 'usernum' => $item->history_usernum }); +% FS::access_user->by_key( $item->history_usernum ); % $otaker = $access_user{ $item->history_usernum }->username % if $access_user{ $item->history_usernum }; % } @@ -83,7 +83,7 @@ % my $label = ''; -% if ( $item->table eq 'legacy_cust_bill' ) { +% if ( $item->table eq 'legacy_cust_history' ) { % $label = $item->item; % } else { % $label = $item->table; @@ -100,7 +100,7 @@ -% if ( $item->table eq 'legacy_cust_bill' ) { +% if ( $item->table eq 'legacy_cust_history' ) { <% $item->description |h %> % } else { <% join(', ',