X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FClientAPI%2FMasonComponent.pm;h=20b4e5bdbe1adadc9f4f307ccaf482500ce1ad0f;hb=d7eafc9c9aae2bf47ea19a56cc5bb1380c5874e4;hp=e98e8dc4f368f68a0438a5d0c2719bf4a1ee627e;hpb=87465e82d516c55d68fb97fbb9c3afdec6a5dd03;p=freeside.git diff --git a/FS/FS/ClientAPI/MasonComponent.pm b/FS/FS/ClientAPI/MasonComponent.pm index e98e8dc4f..20b4e5bdb 100644 --- a/FS/FS/ClientAPI/MasonComponent.pm +++ b/FS/FS/ClientAPI/MasonComponent.pm @@ -67,7 +67,7 @@ my %session_callbacks = ( map { $_->part_pkg } $cust_main->ncancelled_pkgs; - unless ( $classnum{''} ) { + unless ( $classnum{''} || ! keys %classnum ) { @part_pkg = grep $classnum{ $_->classnum }, @part_pkg; } } @@ -109,6 +109,7 @@ sub mason_comp { my $conf = new FS::Conf; $FS::Mason::Request::FSURL = $conf->config('selfservice_server-base_url'); + $FS::Mason::Request::FSURL .= '/' unless $FS::Mason::Request::FSURL =~ /\/$/; $FS::Mason::Request::QUERY_STRING = $packet->{'query_string'} || ''; $outbuf = '';