X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fdashboard-toplist.html;h=b80af7883b51df55e09992c18e9583929c95a810;hb=1c3dfc13e3eaf4a0d2fc213111dcbf12608ee81c;hp=c6362e0c9253242cde5c3f78dbd7866da8062c7f;hpb=a10c9fb8cece00fc3b996f56c61b6841e93c1551;p=freeside.git diff --git a/httemplate/elements/dashboard-toplist.html b/httemplate/elements/dashboard-toplist.html index c6362e0c9..b80af7883 100644 --- a/httemplate/elements/dashboard-toplist.html +++ b/httemplate/elements/dashboard-toplist.html @@ -21,7 +21,7 @@ - <% $cust_main->name %> + <% $cust_main->name |h %> <& /elements/mcp_lint.html, 'cust_main'=>$cust_main &> @@ -169,7 +169,6 @@ if ( $FS::TicketSystem::system eq 'RT_Internal' ObjectCustomFieldValues.ObjectId = cust_tickets.Id ) GROUP BY cust_tickets.custnum, ObjectCustomFieldValues.Content"; - #warn $sql."\n"; } else { # no custom_priority_field $sql = "SELECT cust_tickets.custnum, @@ -181,10 +180,8 @@ if ( $FS::TicketSystem::system eq 'RT_Internal' my $sth = dbh->prepare($sql) or die dbh->errstr; $sth->execute or die $sth->errstr; while ( my $row = $sth->fetchrow_hashref ) { - #warn to_json($row)."\n"; $num_tickets_by_priority{ $row->{priority} }->{ $row->{custnum} } = $row->{num_tickets}; } } -#warn Dumper \%num_tickets_by_priority;