[freeside-commits] branch master updated. 8f57d93002c86360c65613ab5c179205059fd10e

Ivan ivan at 420.am
Mon Jan 14 15:14:06 PST 2013


The branch, master has been updated
       via  8f57d93002c86360c65613ab5c179205059fd10e (commit)
      from  04ea9274b34b21b515891b781b37d05b6aba5eda (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 8f57d93002c86360c65613ab5c179205059fd10e
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Jan 14 15:14:04 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 92fcd0c..6ce6586 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -1586,7 +1586,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 ],
@@ -1600,7 +1603,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