[freeside-commits] freeside/httemplate/view/cust_main misc.html, 1.21, 1.22 tickets.html, 1.20, 1.21
Mark Wells
mark at wavetail.420.am
Thu Jul 21 15:52:40 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv26894/httemplate/view/cust_main
Modified Files:
misc.html tickets.html
Log Message:
ticket display sort order, #13199
Index: tickets.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/tickets.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -w -d -r1.20 -r1.21
--- tickets.html 28 Jun 2011 20:28:32 -0000 1.20
+++ tickets.html 21 Jul 2011 22:52:38 -0000 1.21
@@ -132,6 +132,14 @@
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';
Index: misc.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/misc.html,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -w -d -r1.21 -r1.22
--- misc.html 18 May 2011 01:03:14 -0000 1.21
+++ misc.html 21 Jul 2011 22:52:38 -0000 1.22
@@ -125,6 +125,15 @@
% }
+% if ( $conf->exists('ticket_system-selfservice_edit_subject') ) {
+
+ <TR>
+ <TD ALIGN="right"><% mt('Edit ticket subjects') %></TD>
+ <TD BGCOLOR="#ffffff"><% $cust_main->edit_subject ? 'yes' : 'no' %></TD>
+ </TR>
+
+% }
+
</TABLE></TD></TR></TABLE>
<%init>
More information about the freeside-commits
mailing list