X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_main.cgi;h=a12c180a5f2ff4ff099b410e9f68f14f46f963ca;hb=8127468dc459a8257ab7c15cca10801b9b2a3551;hp=7d15d1cfc9eec8cbe9c3b206f9cf86884e41ec25;hpb=dda497584a2e12907bba7cf07051fe34ede63b32;p=freeside.git diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index 7d15d1cfc..a12c180a5 100755 --- a/httemplate/search/cust_main.cgi +++ b/httemplate/search/cust_main.cgi @@ -317,7 +317,7 @@ END my @custom_priorities = (); if ( $conf->config('ticket_system-custom_priority_field') - && @{ $conf->config('ticket_system-custom_priority_field-values') } ) { + && @{[ $conf->config('ticket_system-custom_priority_field-values') ]} ) { @custom_priorities = $conf->config('ticket_system-custom_priority_field-values'); } @@ -401,21 +401,26 @@ END print ""; if ( $addl_col eq 'tickets' ) { if ( @custom_priorities ) { + print ''; foreach my $priority ( @custom_priorities ) { - print ''. - FS::TicketSystem->num_customer_tickets($custnum,$priority). - " $priority
"; + my $ahref = + ''; + print "". + ""; } + print "
$ahref". + FS::TicketSystem->num_customer_tickets($custnum,$priority). + "$ahref$priority
"; } - print ''. - $cust_main->get($addl_col); - print ' total' + my $ahref = + ''; + print $ahref. $cust_main->get($addl_col). ''; + print "${ahref}total
" if @custom_priorities; - print ""; } else { print $cust_main->get($addl_col); }