[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 81c95889e746b174f70956e408795c2c653c3010
Ivan
ivan at 420.am
Mon Jan 14 15:14:07 PST 2013
The branch, FREESIDE_2_3_BRANCH has been updated
via 81c95889e746b174f70956e408795c2c653c3010 (commit)
from 85a657f7c32fc5548ca17f7f5024955c87c07f43 (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 81c95889e746b174f70956e408795c2c653c3010
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Jan 14 15:14:06 2013 -0800
respect part_svc.selfservice_access hidden provisioning services in stock portal, RT#20715
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index 8b840fc..08de83d 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -1555,7 +1555,10 @@ sub list_pkgs {
pkg_label => $_->pkg_label,
status => $_->status,
part_svc =>
- [ map $_->hashref, $_->available_part_svc ],
+ [ map { $_->hashref }
+ grep { $_->selfservice_access ne 'hidden' }
+ $_->available_part_svc
+ ],
cust_svc =>
[ map { my $ref = { $_->hash,
label => [ $_->label ],
@@ -1569,7 +1572,9 @@ sub list_pkgs {
$ref->{svchash}->{svcpart} = $_->part_svc->svcpart
if $_->part_svc->svcdb eq 'svc_phone'; # hack
$ref;
- } $_->cust_svc
+ }
+ grep { $_->part_svc->selfservice_access ne 'hidden' }
+ $_->cust_svc
],
primary_cust_svc =>
$primary_cust_svc
-----------------------------------------------------------------------
Summary of changes:
FS/FS/ClientAPI/MyAccount.pm | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list