X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fchange_history_common.html;h=e228e65555e752f3a1d12aa461a97da70d3e1609;hb=3e9a428cbc8abd4af6fea8eb828126519b43198b;hp=d941427820b2fa595261f025f2a31bbe1b171ced;hpb=f34ac99a5e160d2eac4fb2cfecce820d1cf9b7ed;p=freeside.git diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html index d94142782..e228e6555 100644 --- a/httemplate/elements/change_history_common.html +++ b/httemplate/elements/change_history_common.html @@ -3,6 +3,7 @@ % my $bgcolor2 = '#ffffff'; % my $bgcolor = ''; + User Date @@ -14,6 +15,7 @@ Action Description + % foreach my $item ( @history ) { % my $history_other = ''; @@ -46,10 +48,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 +85,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 +102,7 @@ -% if ( $item->table eq 'legacy_cust_bill' ) { +% if ( $item->table eq 'legacy_cust_history' ) { <% $item->description |h %> % } else { <% join(', ', @@ -148,8 +150,8 @@ die "access deined" my %action = ( 'insert' => 'Insert', #'Create', - 'replace_old' => 'Change from', - 'replace_new' => 'Change to', + 'replace_old' => "Change\xA0from", + 'replace_new' => "Change\xA0to", 'delete' => 'Remove', );