Index: openacs-4/packages/project-manager/templates/project-ae.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/templates/project-ae.tcl,v
diff -u -r1.9 -r1.10
--- openacs-4/packages/project-manager/templates/project-ae.tcl	21 Aug 2006 16:24:06 -0000	1.9
+++ openacs-4/packages/project-manager/templates/project-ae.tcl	11 Dec 2006 17:34:58 -0000	1.10
@@ -146,7 +146,7 @@
         {planned_end_date:text(text)
             {label "[_ project-manager.Deadline_1]"}
 	    {html {id sel2}}
-	    {after_html {<input type='reset' value=' ... ' onclick=\"return showCalendar('sel2', 'y-m-d');\"> \[<b>d.m.y </b>\]
+	    {after_html {<input type='reset' value=' ... ' onclick=\"return showCalendar('sel2', 'y-m-d');\"> \[<b>y-m-d</b>\]
 	    }}
         }
     }
@@ -196,7 +196,7 @@
             set ongoing_p t
         }
 	
-	set planned_end_date [template::util::date::now]
+	set planned_end_date [template::util::date::get_property ansi_no_time [template::util::date::today]]
 	set planned_start_date [template::util::date::now]
 	set description [template::util::richtext::create "" {}]
     } -edit_request {
@@ -268,7 +268,7 @@
 		-project_item_id $project_item_id \
 		-role_id $project_role \
 		-party_id $user_id \
-		-send_email_p "f"
+		-send_email_p "t"
 
 	    if {[exists_and_not_null category_ids]} {
 		category::map_object -object_id $project_id $category_ids
Index: openacs-4/packages/project-manager/templates/task-ae.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/templates/task-ae.tcl,v
diff -u -r1.12 -r1.13
--- openacs-4/packages/project-manager/templates/task-ae.tcl	1 Oct 2006 17:18:10 -0000	1.12
+++ openacs-4/packages/project-manager/templates/task-ae.tcl	11 Dec 2006 17:34:58 -0000	1.13
@@ -637,6 +637,7 @@
 			 -exclude_static]
 
 	db_dml update_task {}
+	db_dml update_parent_id {}
 
 	if {[exists_and_not_null category_ids]} {
 	    category::map_object -object_id $task_id $category_ids
Index: openacs-4/packages/project-manager/templates/task-ae.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/templates/task-ae.xql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/project-manager/templates/task-ae.xql	15 Sep 2005 07:43:14 -0000	1.3
+++ openacs-4/packages/project-manager/templates/task-ae.xql	11 Dec 2006 17:34:58 -0000	1.4
@@ -54,4 +54,12 @@
     </querytext>
   </fullquery>
 
+  <fullquery name="update_parent_id">
+    <querytext>
+	    update cr_items
+	    set parent_id = :project_item_id
+	    where item_id = :task_item_id
+    </querytext>
+  </fullquery>
+
 </queryset>