summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2009-10-12 06:48:43 +0000
committerivan <ivan>2009-10-12 06:48:43 +0000
commite67b7f4bc312c27c09ffcc235aa93b2b78af89a6 (patch)
tree48a3514695f2b3cd84b1032b12774ff472fd8b5e
parenta375847f5b5e1316c0cb8b137e20ee3bb009a8c7 (diff)
fix inadvertant "unknown package" error, fallout from pkg-balance work, RT#6125
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm7
-rw-r--r--fs_selfservice/FS-SelfService/cgi/myaccount.html2
-rw-r--r--fs_selfservice/FS-SelfService/cgi/myaccount_menu.html6
3 files changed, 7 insertions, 8 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index 26cd76f79..493cc3587 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -222,10 +222,9 @@ sub access_info {
];
return { %$info,
- 'custnum' => $custnum,
- 'pkgnum' => $session->{'pkgnum'},
- 'svcnum' => $session->{'svcnum'},
- 'nonprimary' => $session->{'nonprimary'},
+ 'custnum' => $custnum,
+ 'access_pkgnum' => $session->{'pkgnum'},
+ 'svcnum' => $session->{'svcnum'},
};
}
diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html
index d6527fe76..9b54794bc 100644
--- a/fs_selfservice/FS-SelfService/cgi/myaccount.html
+++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html
@@ -4,7 +4,7 @@
Hello <%= $name %>!<BR><BR>
<%= $small_custview %>
<BR>
-<%= if ( $pkgnum ) {
+<%= if ( $access_pkgnum ) {
$OUT .= qq!Balance: <B>\$$balance</B><BR><BR>!;
}
'';
diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount_menu.html b/fs_selfservice/FS-SelfService/cgi/myaccount_menu.html
index 617ae3ebe..8765323fa 100644
--- a/fs_selfservice/FS-SelfService/cgi/myaccount_menu.html
+++ b/fs_selfservice/FS-SelfService/cgi/myaccount_menu.html
@@ -13,7 +13,7 @@ my @menu = (
{ title=>'Purchase', size=>'+1', },
);
-unless ( $pkgnum ) {
+unless ( $access_pkgnum ) {
push @menu,
{ title=>'Purchase additional package',
url=>'customer_order_pkg', 'indent'=>2 };
@@ -57,7 +57,7 @@ push @menu,
{ title=>'View my usage', url=>'view_usage', size=>'+1', },
;
-unless ( $pkgnum ) {
+unless ( $access_pkgnum ) {
push @menu,
{ title=>'Setup my services', url=>'provision', size=>'+1', },
;
@@ -69,7 +69,7 @@ push @menu,
push @menu,
{ title=>'Change my information', size=>'+1', };
-unless ( $pkgnum ) {
+unless ( $access_pkgnum ) {
push @menu,
{ title=>'Change billing address', url=>'change_bill', indent=>2 },
{ title=>'Change service address', url=>'change_ship', indent=>2 },