freeside/httemplate/search cust_main.cgi,1.49,1.50
ivan
ivan at pouncequick.420.am
Thu Dec 9 01:21:47 PST 2004
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory pouncequick:/tmp/cvs-serv12514/httemplate/search
Modified Files:
cust_main.cgi
Log Message:
more RT integration
Index: cust_main.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_main.cgi,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- cust_main.cgi 6 Dec 2004 14:42:08 -0000 1.49
+++ cust_main.cgi 9 Dec 2004 09:21:42 -0000 1.50
@@ -71,7 +71,7 @@
} elsif ( $query eq 'tickets' ) {
$sortby = \*tickets_sort;
$orderby = "ORDER BY tickets DESC";
- push @select, FS::TicketSystem->sql_customer_tickets. " as tickets";
+ push @select, FS::TicketSystem->sql_num_customer_tickets. " as tickets";
push @addl_headers, 'Tickets';
push @addl_cols, 'tickets';
} else {
@@ -402,7 +402,7 @@
if ( $addl_col eq 'tickets' ) {
if ( @custom_priorities ) {
print '<TABLE>';
- foreach my $priority ( @custom_priorities ) {
+ foreach my $priority ( @custom_priorities, '' ) {
my $ahref =
'<A HREF="'.
FS::TicketSystem->href_customer_tickets($custnum,$priority).
@@ -410,16 +410,19 @@
print "<TR><TD ALIGN=right>$ahref".
FS::TicketSystem->num_customer_tickets($custnum,$priority).
"</A></TD>".
- "<TD ALIGN=left>$ahref$priority</A></TD></TR>";
+ "<TD ALIGN=left>$ahref".
+ ( $priority || '<i>(none)</i>' ).
+ </A></TD></TR>";
}
- print "<TR><TD ALIGN=right>";
+ print '<TR><TD BGCOLOR="#000000" COLSPAN=2> </TD></TR>'.
+ '<TR><TD ALIGN=right>';
}
my $ahref =
'<A HREF="'.
FS::TicketSystem->href_customer_tickets($custnum).
'">';
print $ahref. $cust_main->get($addl_col). '</A>';
- print "</TD><TD ALIGN=left>${ahref}total</A></TD></TR></TABLE>"
+ print "</TD><TD ALIGN=left>${ahref}Total</A></TD></TR></TABLE>"
if @custom_priorities;
} else {
print $cust_main->get($addl_col);
More information about the freeside-commits
mailing list