<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>Parent lost when completing via checkbox image</title>
  <pubDate>Sun, 07 Sep 2008 17:18:55 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/5480</link>
  <atom:link rel="self" type="application/rss+xml" title="Parent lost when completing via checkbox image" href="http://bugs.horde.org/ticket/5480/rss" />
  <description>Parent lost when completing via checkbox image</description>

  
  
  <item>
   <title>When completing a task with a parent_task the parent gets lo</title>
   <description>When completing a task with a parent_task the parent gets lost when the task completion is updated.

From what I could see, this stems from some confusion between $task-&gt;parent and $task-&gt;parent_id when loading/saving/merging the task.

The problem is probably in Nag_Driver_sql::_buildTree() but can also be seen in Nag_Task::merge() in the lines 562-565:

             } elseif ($key == 'parent') {
                $key = 'parent_id';
            }
            $this-&gt;$key = $val;

parent contains the data from parent_task, but the substitution above becomes a problem, since both parent and parent_id are already present in the task being merged, which results in it being overwritten when the $key is actually 'parent_id' (which comes after $key == 'parent') in the order of the properties. 

I felt that tasks being passed around like this requires a more solid understanding of the framework, so I haven't studied it much further than this. </description>
   <pubDate>Tue, 19 Jun 2007 17:48:13 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/5480#t34445</link>
  </item>
  <item>
   <title>How exactly do you complete the task, from the task view, fr</title>
   <description>How exactly do you complete the task, from the task view, from the task list, or from task form? And does it happen in all cases?
Also, what exactly do you mean with &quot;gets lost&quot;? What are the symptoms you see?</description>
   <pubDate>Fri, 13 Jul 2007 10:06:44 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/5480#t35181</link>
  </item>
  

 </channel>
</rss>
