Fix errors in the getInstancesForObject and code that used it.

This commit is contained in:
Colin Kuskie 2009-05-21 15:20:25 +00:00
parent c6a0abe8c1
commit 1e52f21fcb
2 changed files with 4 additions and 3 deletions

View file

@ -188,7 +188,8 @@ Returns an instance of the authentication object for this user.
=cut
sub authInstance {
my $session = shift;
my $self = shift;
my $session = $self->session;
my $authMethod;
if ($self->isVisitor) {
@ -373,7 +374,7 @@ sub delete {
if ($self->{_user}{"friendsGroup"} ne "");
# clean up any user workflows
my $instances = WebGUI::Workflow::Instance->getInstancesByObject($session, {
my $instances = WebGUI::Workflow::Instance->getInstancesForObject($session, {
className => ref $self,
methodName => 'new',
parameters => $self->getId,