mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdDuplicate
- When duplicating a task, reset the ID, so that TDB2::add can set it properly.
This commit is contained in:
parent
6faf6bb678
commit
69eb9e8df1
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ int CmdDuplicate::execute (std::string& output)
|
||||||
{
|
{
|
||||||
// Duplicate the specified task.
|
// Duplicate the specified task.
|
||||||
Task dup (*task);
|
Task dup (*task);
|
||||||
|
dup.id = 0; // Reset, and TDB2::add will set.
|
||||||
dup.set ("uuid", uuid ()); // Needs a new UUID.
|
dup.set ("uuid", uuid ()); // Needs a new UUID.
|
||||||
dup.remove ("start"); // Does not inherit start date.
|
dup.remove ("start"); // Does not inherit start date.
|
||||||
dup.remove ("end"); // Does not inherit end date.
|
dup.remove ("end"); // Does not inherit end date.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue