From 69eb9e8df1900e97e1f8f5f473a0eeb18ff3bc31 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 16 Aug 2014 14:26:05 -0400 Subject: [PATCH] CmdDuplicate - When duplicating a task, reset the ID, so that TDB2::add can set it properly. --- src/commands/CmdDuplicate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/CmdDuplicate.cpp b/src/commands/CmdDuplicate.cpp index b79ea82f1..7c7942d41 100644 --- a/src/commands/CmdDuplicate.cpp +++ b/src/commands/CmdDuplicate.cpp @@ -70,6 +70,7 @@ int CmdDuplicate::execute (std::string& output) { // Duplicate the specified task. Task dup (*task); + dup.id = 0; // Reset, and TDB2::add will set. dup.set ("uuid", uuid ()); // Needs a new UUID. dup.remove ("start"); // Does not inherit start date. dup.remove ("end"); // Does not inherit end date.