- #1268 Edit doesn't accept changes, if task has completed dependency (thanks
  to Dmitriy Matrosov, Michele Santullo).
This commit is contained in:
Paul Beckingham 2013-10-06 17:59:55 -04:00
parent bc3bae9fd2
commit 1872a87838
4 changed files with 7 additions and 18 deletions

View file

@ -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