[freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi ticket_summary.html, 1.2, 1.3
Mark Wells
mark at wavetail.420.am
Thu Jul 21 15:52:40 PDT 2011
Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi
In directory wavetail.420.am:/tmp/cvs-serv26894/fs_selfservice/FS-SelfService/cgi
Modified Files:
ticket_summary.html
Log Message:
ticket display sort order, #13199
Index: ticket_summary.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/ticket_summary.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- ticket_summary.html 8 Jul 2011 22:17:53 -0000 1.2
+++ ticket_summary.html 21 Jul 2011 22:52:38 -0000 1.3
@@ -10,6 +10,12 @@
my $can_set_priority =
grep { exists($_->{'_selfservice_priority'}) } @tickets;
if ( $can_set_priority ) {
+ use sort 'stable';
+ @tickets = sort {
+ ($b->{'_selfservice_priority'} || 0) <=>
+ ($a->{'_selfservice_priority'} || 0)
+ } @tickets;
+
$OUT .= qq!<FORM ACTION="$selfurl" METHOD="POST">! .
qq!<INPUT TYPE="hidden" NAME="session" VALUE="$session_id">! .
qq!<INPUT TYPE="hidden" NAME="action" VALUE="ticket_priority">!;
More information about the freeside-commits
mailing list