[freeside-commits] freeside/FS/FS/TicketSystem RT_Internal.pm, 1.24, 1.24.2.1

Mark Wells mark at wavetail.420.am
Thu Jul 21 16:29:46 PDT 2011


Update of /home/cvs/cvsroot/freeside/FS/FS/TicketSystem
In directory wavetail.420.am:/tmp/cvs-serv29934/FS/FS/TicketSystem

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	RT_Internal.pm 
Log Message:
ticket display sort order, #13199

Index: RT_Internal.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/TicketSystem/RT_Internal.pm,v
retrieving revision 1.24
retrieving revision 1.24.2.1
diff -u -w -d -r1.24 -r1.24.2.1
--- RT_Internal.pm	28 Jun 2011 21:12:36 -0000	1.24
+++ RT_Internal.pm	21 Jul 2011 23:29:44 -0000	1.24.2.1
@@ -150,17 +150,11 @@
   my $conf = FS::Conf->new;
   my $priority_order =
     $conf->exists('ticket_system-priority_reverse') ? 'ASC' : 'DESC';
-  my $custom_priority = 
-    $conf->config('ticket_system-custom_priority_field') || '';
 
-  my @order_by;
-  my $ss_priority = selfservice_priority();
-  push @order_by, { FIELD => "CF.{$ss_priority}", ORDER => $priority_order }
-    if $ss_priority;
-  push @order_by,
+  my @order_by = (
     { FIELD => 'Priority', ORDER => $priority_order },
     { FIELD => 'Id',       ORDER => 'DESC' },
-  ;
+  );
 
   $Tickets->OrderByCols(@order_by);
 
@@ -168,6 +162,7 @@
   while ( my $t = $Tickets->Next ) {
     push @tickets, _ticket_info($t);
   }
+
   return \@tickets;
 }
 



More information about the freeside-commits mailing list