summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main/tickets.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/view/cust_main/tickets.html')
-rw-r--r--httemplate/view/cust_main/tickets.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/httemplate/view/cust_main/tickets.html b/httemplate/view/cust_main/tickets.html
index e0262b895..863c66be4 100644
--- a/httemplate/view/cust_main/tickets.html
+++ b/httemplate/view/cust_main/tickets.html
@@ -132,6 +132,14 @@ my( $new_base, %new_param ) =
my $new_link = FS::TicketSystem->href_new_ticket( $cust_main );
my $ss_priority = FS::TicketSystem->selfservice_priority;
+if ( $ss_priority ) {
+ use sort 'stable';
+ no warnings 'uninitialized';
+ @tickets = sort {
+ ($b->{'content'} eq $a->{'content'}) &&
+ $b->{'_selfservice_priority'} <=> $a->{'_selfservice_priority'}
+ } @tickets;
+}
my $format = $conf->config('date_format') || '%Y-%m-%d';