Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line 47 of WWW/Asana/Workspace.pm needs to check that assignee is defined #3

Open
nateau opened this issue Oct 16, 2014 · 0 comments
Open

Comments

@nateau
Copy link

nateau commented Oct 16, 2014

my @workspaces = @{$me->workspaces};
foreach my $ws (@workspaces) {
print "$ws->{'id'}: $ws->{'name'}\n";
print Dumper $ws->tasks;
}

results in:
Use of uninitialized value $assignee in string eq at /Library/Perl/5.16/WWW/Asana/Workspace.pm line 47.

Line 47 should read:
die 'tasks need a WWW::Asana::User or "me" as parameter' unless defined $assignee and (ref $assignee eq "WWW::Asana::User" or $assignee eq "me");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant