Index: openacs-4/contrib/packages/project-manager/www/task-add-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/task-add-edit.tcl,v diff -u -r1.27.2.6 -r1.27.2.7 --- openacs-4/contrib/packages/project-manager/www/task-add-edit.tcl 21 Jul 2004 19:00:11 -0000 1.27.2.6 +++ openacs-4/contrib/packages/project-manager/www/task-add-edit.tcl 13 Aug 2004 18:57:34 -0000 1.27.2.7 @@ -25,7 +25,7 @@ @param process_task_ids Specifies what process task ids were used if a process were used. We pass this on to future pages to determine things such as assignments @param project_item_id Specifies which project each task is associated with. If this is a new task, this specifies the project that it will be assigned under. - @param my_key if set, then ad_form knows that this is an edit + @param my_key if set, then ad_form knows that this is an edit. @param process_task_ids @param project_item_id This is optionally passed in to this page to indictate the project that the tasks should be associated with. @@ -129,7 +129,14 @@ set use_uncertain_completion_times_p [parameter::get -parameter "UseUncertainCompletionTimesP" -default "1"] # --------------------------------------------------------------- # +# ----------------------------------------- +# if we have a task_id, then we are editing +# ----------------------------------------- +if {![exists_and_not_null my_key] && ![empty_string_p $task_id]} { + set my_key 1 +} + # -------------------------------------------------------------------- # If we are using a process, then we need to get the information on # the process now. This is necessary because we need to do things like @@ -179,8 +186,7 @@ # we use this to get around the lack of a hidden multiple in ad_form -set task_id_pass [string map {"-" " "} $task_id] -set task_id $task_id_pass +set task_id [string map {"-" " "} $task_id] # we sort this because we want to keep the ordering # consistent. Otherwise, we can run into problems when editing