diff options
author | Ivan Kohler <ivan@freeside.biz> | 2018-02-21 10:17:57 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2018-02-21 10:17:57 -0800 |
commit | de549dfea65bf78508b508f03e4f9637122166a6 (patch) | |
tree | c38da2ae62e7373981334df2de99f04693d56f64 /FS/FS/ClientAPI | |
parent | 266e0c3c894568fb06a15dfbcf4a4eb9bc6989b3 (diff) |
hide tickets with selfservice priority indicating closure, RT#79444
Diffstat (limited to 'FS/FS/ClientAPI')
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index c00a13f..66697ef 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -3589,6 +3589,11 @@ sub list_tickets { # unavoidable false laziness w/ httemplate/view/cust_main/tickets.html if ( $FS::TicketSystem::system && FS::TicketSystem->selfservice_priority ) { + + @tickets = grep { $_->{'_selfservice_priority'} + !~ /^\s*(closed?|resolved?|done)\s*/i } + @tickets; + my $conf = new FS::Conf; my $dir = $conf->exists('ticket_system-priority_reverse') ? -1 : 1; +{ tickets => [ |