From 6fdf4cf08d6be3f99979c09d391bc091c52bc9fb Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Fri, 9 May 2008 04:23:41 -0500 Subject: some more forgotten arguments --- lib/App/Hiveminder/Command/Braindump.pm | 3 ++- lib/App/Hiveminder/Command/Decline.pm | 2 +- lib/App/Hiveminder/Command/Delete.pm | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/App/Hiveminder/Command/Braindump.pm b/lib/App/Hiveminder/Command/Braindump.pm index 0f4ac7b..4ed26de 100644 --- a/lib/App/Hiveminder/Command/Braindump.pm +++ b/lib/App/Hiveminder/Command/Braindump.pm @@ -16,7 +16,8 @@ sub command { my $self = shift; my $text = get_text_from_editor; - return display_tasks($self->hm->braindump($text, returns => 'tasks', + return display_tasks($self->hm, + $self->hm->braindump($text, returns => 'tasks', tokens => [@_])) unless $text eq ''; return ''; diff --git a/lib/App/Hiveminder/Command/Decline.pm b/lib/App/Hiveminder/Command/Decline.pm index 7ed6e70..7f09755 100644 --- a/lib/App/Hiveminder/Command/Decline.pm +++ b/lib/App/Hiveminder/Command/Decline.pm @@ -21,7 +21,7 @@ sub command { 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"; + $ret .= "Declined " . display_tasks($self->hm, $task) . "\n"; } } diff --git a/lib/App/Hiveminder/Command/Delete.pm b/lib/App/Hiveminder/Command/Delete.pm index 33552eb..b6d7202 100644 --- a/lib/App/Hiveminder/Command/Delete.pm +++ b/lib/App/Hiveminder/Command/Delete.pm @@ -17,7 +17,7 @@ sub command { # XXX: offer an interactive mode here, possibly my $ret = ''; for my $locator (@_) { - my $desc = display_tasks($self->hm->read_task($locator)); + my $desc = display_tasks($self->hm, $self->hm->read_task($locator)); $ret .= "Deleted $desc\n"; eval { $self->hm->delete('Task', id => $self->hm->loc2id($locator)) }; warn $@ unless $@ =~ /404 Not Found/; -- cgit v1.2.3-54-g00ecf