This commit was generated by cvs2svn to compensate for changes in r12472,
[freeside.git] / fs_selfservice / FS-SelfService / cgi / ticket_summary.html
index 781b1e7..c840ca9 100644 (file)
@@ -10,11 +10,6 @@ my $col = $col1;
 my $can_set_priority = 
   grep { exists($_->{'_selfservice_priority'}) } @tickets;
 if ( $can_set_priority ) {
-  use sort 'stable';
-  @tickets = sort { 
-              ($b->{'_selfservice_priority'} || 0) <=> 
-              ($a->{'_selfservice_priority'} || 0)
-  } @tickets;
 
   $OUT .= qq!<FORM ACTION="$selfurl" METHOD="POST">! .
           qq!<INPUT TYPE="hidden" NAME="session" VALUE="$session_id">! .
@@ -28,7 +23,7 @@ my $date_formatter = sub {
 };
 
 my @titles = ('#', qw(Subject Queue Status Created Due));
-push @titles, 'Estimated<BR>Minutes';
+push @titles, 'Estimated<BR>Hours';
 push @titles, 'Priority';
 
 $OUT .= join("\n", map { "<TH VALIGN=\"top\">$_</TH><TH>&nbsp;</TH>" } @titles)
@@ -46,8 +41,11 @@ $td. $ticket->{'queue'} . '</TD>'. $space .
 $td. $ticket->{'status'} . '</TD>'. $space .
 $td. $date_formatter->($ticket->{'created'}) . '</TD>'. $space .
 $td. $date_formatter->($ticket->{'due'}) . '</TD>'. $space .
-qq!<TD BGCOLOR="#$col" ALIGN="right">!. ($ticket->{'timeestimated'} || '') 
-.  '</TD>'. $space .
+qq!<TD BGCOLOR="#$col" ALIGN="right">!. 
+  ($ticket->{'timeestimated'} ? 
+    sprintf('%.1f', $ticket->{'timeestimated'} / 60.0) # .1f?
+  : ''
+  ) .  '</TD>'. $space .
 qq!<TD BGCOLOR="#$col" ALIGN="right">!;
   if ( $can_set_priority ) {
     $OUT .= '<INPUT TYPE="hidden" NAME="ticket'.$id.'" VALUE="1">' .