mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TDB2
- Updated ID:UUID mapping on ::add, which is the first part of the fix for TW-1389.
This commit is contained in:
parent
882ea8102f
commit
0825ce3c56
1 changed files with 10 additions and 3 deletions
13
src/TDB2.cpp
13
src/TDB2.cpp
|
@ -140,11 +140,18 @@ void TF2::add_task (const Task& task)
|
|||
_tasks.push_back (hookTask); // For subsequent queries
|
||||
_added_tasks.push_back (hookTask); // For commit/synch
|
||||
|
||||
/* TODO handle 'add' and 'log'?
|
||||
int id = context.tdb2.next_id ();
|
||||
int id = task.id;
|
||||
Task::status status = task.getStatus ();
|
||||
if (id == 0 &&
|
||||
(status == Task::pending ||
|
||||
status == Task::recurring ||
|
||||
status == Task::waiting))
|
||||
{
|
||||
id = context.tdb2.next_id ();
|
||||
}
|
||||
|
||||
_I2U[id] = task.get ("uuid");
|
||||
_U2I[task.get ("uuid")] = id;
|
||||
*/
|
||||
|
||||
_dirty = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue