From 5a41be4244db0a966d9c7342481d6c067e21d4d2 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Fri, 9 May 2008 03:48:16 -0500 Subject: oops, forgot $self --- lib/App/Hiveminder/Command/Decline.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/App/Hiveminder/Command/Decline.pm b/lib/App/Hiveminder/Command/Decline.pm index da34aac..7ed6e70 100644 --- a/lib/App/Hiveminder/Command/Decline.pm +++ b/lib/App/Hiveminder/Command/Decline.pm @@ -17,8 +17,8 @@ sub command { return unless @_ > 0; my $ret = ''; - for my $task ($hm->get_tasks(%{ parse_args @_ })) { - my $updated_task = $hm->update_task($task, accepted => 0); + for my $task ($self->hm->get_tasks(%{ parse_args @_ })) { + my $updated_task = $self->hm->update_task($task, accepted => 0); # we get a task hash with each field undef if it succeeds if (!defined $updated_task->{id}) { $ret .= "Declined " . display_tasks($task) . "\n"; -- cgit v1.2.3