From de549dfea65bf78508b508f03e4f9637122166a6 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 21 Feb 2018 10:17:57 -0800 Subject: hide tickets with selfservice priority indicating closure, RT#79444 --- FS/FS/ClientAPI/MyAccount.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'FS') 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 => [ -- cgit v1.2.1 From def6bb5926b81d4a4b66e0c9dd7ff03bf55706ad Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Sat, 24 Feb 2018 00:09:38 +0000 Subject: RT# 79284 Fix UI bug for Change Package screen --- FS/FS/cust_pkg.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'FS') diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index f11beec7d..b24b3abe3 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -3010,6 +3010,7 @@ sub _parse_new_discounts { discountnum => $opt->{"${type}_discountnum"}, amount => $opt->{"${type}_discountnum_amount"}, percent => $opt->{"${type}_discountnum_percent"}, + months => $opt->{"${type}_discountnum_months"}, }; } -- cgit v1.2.1