From: Christopher Burger Date: Mon, 1 May 2017 19:09:18 +0000 (-0400) Subject: RT#73993 - updated selfservice and ngselfservice to allow for the control of changes... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=afe6bb2515f2bde29a74c056221fd154dc10001f RT#73993 - updated selfservice and ngselfservice to allow for the control of changes packages by agent. --- diff --git a/FS/FS/ClientAPI/MasonComponent.pm b/FS/FS/ClientAPI/MasonComponent.pm index 3a4bfe133..d09d6da46 100644 --- a/FS/FS/ClientAPI/MasonComponent.pm +++ b/FS/FS/ClientAPI/MasonComponent.pm @@ -145,7 +145,7 @@ sub mason_comp { return { 'error' => 'Illegal component' }; } - my @args = $packet->{'args'} ? @{ $packet->{'args'} } : (); + my @args = $packet->{'args'} ? $packet->{'args'} : (); if ( $session_comps{$comp} ) { diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 714190a89..a53fedb8e 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -4821,6 +4821,7 @@ and customer address. Include units.', 'Change billing address', 'Change service address', 'Change payment information', + 'Change packages', 'Change password(s)', 'Logout', ], diff --git a/ng_selfservice/elements/error.php b/ng_selfservice/elements/error.php index 2cff74f86..ee60c6e90 100644 --- a/ng_selfservice/elements/error.php +++ b/ng_selfservice/elements/error.php @@ -1,2 +1,3 @@ -
'; } ?>
- + +
'; ?>
+ diff --git a/ng_selfservice/elements/menu.php b/ng_selfservice/elements/menu.php index cb9d617c8..b68c8c18d 100644 --- a/ng_selfservice/elements/menu.php +++ b/ng_selfservice/elements/menu.php @@ -32,15 +32,15 @@ extract($skin_info); foreach ($menu_array AS $menu_item) { if ( preg_match('/^\s*$/', $menu_item) ) { - print_menu($submenu, $current_menu); + print_menu($submenu, $current_menu, $menu_disable); $submenu = array(); } else { $submenu[] = $menu_item; } } - print_menu($submenu, $current_menu); + print_menu($submenu, $current_menu, $menu_disable); - function print_menu($submenu_array, $current_menu) { + function print_menu($submenu_array, $current_menu, $menu_disable) { if ( count($submenu_array) == 0 ) { return; } $links = array(); @@ -71,8 +71,10 @@ extract($skin_info); echo ''; } diff --git a/ng_selfservice/services.php b/ng_selfservice/services.php index ce47e9ea4..25fbdde4f 100644 --- a/ng_selfservice/services.php +++ b/ng_selfservice/services.php @@ -17,6 +17,7 @@ extract($list_pkgs); ?> + @@ -29,11 +30,17 @@ extract($list_pkgs); $rowspan = count($pkg['cust_svc']); if ( $rowspan == 0 ) { $rowspan = 1; } $td = ' +   
  Product Status Service(s)'; + + $change_link = ''; + if ( in_array("Change packages", $menu_disable) == 0) { + $change_link = '[change]'; + } ?>