diff options
| author | mark <mark> | 2011-07-21 23:29:44 +0000 |
|---|---|---|
| committer | mark <mark> | 2011-07-21 23:29:44 +0000 |
| commit | c598fcf11241b02111a2df43860199ae8a9d5512 (patch) | |
| tree | 4ea53dfb24450125a38945a4b3969e31aa65b3f9 /httemplate | |
| parent | 5fdd19665fb7c0ad425a99d3dbf9ad7e27fbf44a (diff) | |
ticket display sort order, #13199
Diffstat (limited to 'httemplate')
| -rw-r--r-- | httemplate/view/cust_main/misc.html | 9 | ||||
| -rw-r--r-- | httemplate/view/cust_main/tickets.html | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index ed9b91a61..5987459a5 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -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> 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'; |
