summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/App/Hiveminder/Command/Braindump.pm3
-rw-r--r--lib/App/Hiveminder/Command/Decline.pm2
-rw-r--r--lib/App/Hiveminder/Command/Delete.pm2
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/;