From 6e2943c8f3befb0a560826e2d764dac1193bfdc1 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 10 Jan 2013 16:09:53 +0100 Subject: Missing attributes are now transmitted properly to the client. --- src/tasktree.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tasktree.cc') diff --git a/src/tasktree.cc b/src/tasktree.cc index b404cf5..5205abf 100644 --- a/src/tasktree.cc +++ b/src/tasktree.cc @@ -218,7 +218,7 @@ TaskIdList TaskTree::updateData(taskid_t id, const std::string &name, try { node_t* node = id2node.at(id); - node->data.attributes[name] = name; + node->data.attributes[name] = value; affectedNodes.push_back(id); TaskIdList ancestors = ancestorList(id); @@ -241,7 +241,7 @@ task_t TaskTree::data(taskid_t id) node_t* node = id2node.at(id); task_t tmp = node->data; t.id = node->id; - t.attributes["title"] = tmp.attributes["title"]; + t.attributes = tmp.attributes; // DEBUG(tasktree, "!!!!t.id and tmp.id in data: %d and %d\n", t.id, tmp.id); if(node->parent) t.parentid = node->parent->id; else { -- cgit v1.2.3