From f481fcc27b20d1a3aee48a613a52395e7cffd871 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 9 Oct 2007 01:01:41 +0000 Subject: [PATCH] i think this should fix timeworked subjects, and link to the transactions as well --- httemplate/misc/timeworked.html | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/httemplate/misc/timeworked.html b/httemplate/misc/timeworked.html index f85a62835..ac5996087 100755 --- a/httemplate/misc/timeworked.html +++ b/httemplate/misc/timeworked.html @@ -29,27 +29,28 @@ -% foreach ( keys %ticketmap ) { -% my (@customers) = @{$customers{$ticketmap{$_}}}; +% foreach my $tr_id ( keys %ticketmap ) { +% my (@customers) = @{$customers{$ticketmap{$tr_id}}}; % next unless @customers; % my $multiplier = sprintf("%.2f", 1/@customers); % my ($custnum, $name) = split(':', pop @customers, 2); +% my $link = $p. 'rt/Ticket/Display.html?id='. $ticketmap{$tr_id}. +% '#txn-'. $tr_id; - <% $_ %> - <% $ticketmap{$_} %> - <% $ticket{$_} %> - <% sprintf("%0.2f", $cgi->param("seconds$_")/3600) %> + <% $tr_id %> + <% $ticketmap{$tr_id} %> + <% $ticket{$ticketmap{$tr_id}} %> + <% sprintf("%0.2f", $cgi->param("seconds$tr_id")/3600) %> <% $custnum %> <% $name %> - - " > - param("multiplier${_}_$custnum") : $multiplier %>" > + + " > + param("multiplier${_}_$custnum") : $multiplier %>" > -% my $tr_id = $_; % foreach ( @customers ) { % ($custnum, $name) = split(':', $_, 2); -- 2.11.0