[freeside-commits] branch master updated. de549dfea65bf78508b508f03e4f9637122166a6
Ivan Kohler
ivan at freeside.biz
Wed Feb 21 10:17:58 PST 2018
The branch, master has been updated
via de549dfea65bf78508b508f03e4f9637122166a6 (commit)
from 266e0c3c894568fb06a15dfbcf4a4eb9bc6989b3 (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 de549dfea65bf78508b508f03e4f9637122166a6
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Feb 21 10:17:57 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 c00a13f2b..66697efb5 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 => [
-----------------------------------------------------------------------
Summary of changes:
FS/FS/ClientAPI/MyAccount.pm | 5 +++++
1 file changed, 5 insertions(+)
More information about the freeside-commits
mailing list