[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.173, 1.174
Ivan,,,
ivan at wavetail.420.am
Wed Jan 4 22:04:01 PST 2012
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv30474/FS/FS/ClientAPI
Modified Files:
MyAccount.pm
Log Message:
add selfservice_access selection to part_svc, RT#15628
Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -w -d -r1.173 -r1.174
--- MyAccount.pm 19 Dec 2011 23:16:28 -0000 1.173
+++ MyAccount.pm 5 Jan 2012 06:03:59 -0000 1.174
@@ -1422,6 +1422,9 @@
next if $pkgnum && $cust_pkg->pkgnum != $pkgnum;
push @cust_svc, @{[ $cust_pkg->cust_svc ]}; #@{[ ]} to force array context
}
+
+ @cust_svc = grep { $_->part_svc->selfservice_access ne 'hidden' } @cust_svc;
+
if ( $p->{'svcdb'} ) {
my $svcdb = ref($p->{'svcdb'}) eq 'HASH'
? $p->{'svcdb'}
@@ -1445,7 +1448,8 @@
map {
my $svc_x = $_->svc_x;
my($label, $value) = $_->label;
- my $svcdb = $_->part_svc->svcdb;
+ my $part_svc = $_->part_svc;
+ my $svcdb = $part_svc->svcdb;
my $cust_pkg = $_->cust_pkg;
my $part_pkg = $cust_pkg->part_pkg;
@@ -1455,6 +1459,7 @@
'label' => $label,
'value' => $value,
'pkg_status' => $cust_pkg->status,
+ 'readonly' => ( $part_svc->selfservice_access eq 'readonly' ),
);
if ( $svcdb eq 'svc_acct' ) {
More information about the freeside-commits
mailing list