[freeside-commits] branch FREESIDE_4_BRANCH updated. 4df06d48a1f7ae016e7bb02654e7820c8cd27975

Ivan Kohler ivan at freeside.biz
Wed Feb 21 10:18:02 PST 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  4df06d48a1f7ae016e7bb02654e7820c8cd27975 (commit)
      from  70203e3be5de0331ba031d94972c274183c595d2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4df06d48a1f7ae016e7bb02654e7820c8cd27975
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Feb 21 10:18:01 2018 -0800

    hide tickets with selfservice priority indicating closure, RT#79444

diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index ce887efcd..ca1c9733f 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -3582,6 +3582,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 => [ 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/ClientAPI/MyAccount.pm | 5 +++++
 1 file changed, 5 insertions(+)




More information about the freeside-commits mailing list