X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FClientAPI.pm;h=c36fd5595c24f9f6da7f1d8ee659e70e67733b40;hp=1fea28c6733fd2ca0daa3704e3e6686d043487b0;hb=c13b6c8f4b9876aa8f91e1c14d3c208ac0d189e9;hpb=4266969f2c69f6fc07672f118b86716f52a95b86 diff --git a/FS/FS/ClientAPI.pm b/FS/FS/ClientAPI.pm index 1fea28c67..c36fd5595 100644 --- a/FS/FS/ClientAPI.pm +++ b/FS/FS/ClientAPI.pm @@ -3,6 +3,7 @@ package FS::ClientAPI; use strict; use base 'Exporter'; use vars qw( @EXPORT_OK %handler $domain $DEBUG $me ); +use FS::UID qw( dbh ); @EXPORT_OK = qw( load_clientapi_modules ); @@ -35,9 +36,17 @@ sub dispatch { my ( $self, $name ) = ( shift, shift ); $name =~ s(/)(::)g; my $sub = "FS::ClientAPI::$name"; + + dbh->{'private_profile'} = {}; + warn "$me dispatch: calling $sub with args @_\n" if $DEBUG; no strict 'refs'; - &{$sub}(@_); + my $rv = &{$sub}(@_); + + warn dbh->sprintProfile if dbh->can('sprintProfile'); + dbh->{'private_profile'} = {}; + + $rv; } 1;