From 72bd579cf4e6c2adbb82cd86b2e1e8a43cb673a7 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 30 Aug 2011 00:29:24 -0400 Subject: [PATCH] Bug - The 'add' command was calling TDB2::add, but TDB::nextId. --- src/commands/CmdAdd.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/commands/CmdAdd.cpp b/src/commands/CmdAdd.cpp index 24dbd5b9a..fb05145aa 100644 --- a/src/commands/CmdAdd.cpp +++ b/src/commands/CmdAdd.cpp @@ -64,10 +64,8 @@ int CmdAdd::execute (std::string& output) context.tdb2.add (task); // TODO This should be a call in to feedback.cpp. -/* if (context.verbose ("new-id")) - output = format (STRING_CMD_ADD_FEEDBACK, context.tdb.nextId ()) + "\n"; -*/ + output = format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n"; /* context.footnote (onProjectChange (task)); */