mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #1268
- #1268 Edit doesn't accept changes, if task has completed dependency (thanks to Dmitriy Matrosov, Michele Santullo).
This commit is contained in:
parent
bc3bae9fd2
commit
1872a87838
4 changed files with 7 additions and 18 deletions
|
@ -660,20 +660,10 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string
|
|||
std::vector <std::string>::iterator dep;
|
||||
for (dep = dependencies.begin (); dep != dependencies.end (); ++dep)
|
||||
{
|
||||
std::vector <int> ids;
|
||||
|
||||
// Crude UUID check
|
||||
if (dep->length () == 36)
|
||||
{
|
||||
int id = context.tdb2.pending.id (*dep);
|
||||
ids.push_back (id);
|
||||
}
|
||||
if (dep->length () >= 7)
|
||||
task.addDependency (*dep);
|
||||
else
|
||||
A3::extract_id (*dep, ids);
|
||||
|
||||
std::vector <int>::iterator id;
|
||||
for (id = ids.begin (); id != ids.end(); id++)
|
||||
task.addDependency (*id);
|
||||
task.addDependency ((int) strtol (dep->c_str (), NULL, 10));
|
||||
}
|
||||
|
||||
// UDAs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue