Index: openacs-4/packages/project-manager/tcl/project-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/tcl/project-procs.tcl,v diff -u -r1.47 -r1.48 --- openacs-4/packages/project-manager/tcl/project-procs.tcl 5 Apr 2018 14:44:09 -0000 1.47 +++ openacs-4/packages/project-manager/tcl/project-procs.tcl 17 Apr 2018 14:47:03 -0000 1.48 @@ -1258,15 +1258,15 @@ if {[string is true $debug]} { ns_log Notice " dependent_item: $dependent_item" } - + if {[exists_and_not_null ongoing_task($dependent_item)]} { set defer_p f set my_latest_start "" if {[string is true $debug]} { ns_log Notice " ongoing_task, no defer" } - + } elseif {![exists_and_not_null latest_start($dependent_item)]} { # we defer the task if the dependent item has no # latest_start date set @@ -1283,7 +1283,7 @@ # be cleaned up better. Defering is necessary # given this algorithm, but there are # times when you don't want to defer. - # This is hackish, and I'm embarrased, but on + # This is hackish, and I'm embarrassed, but on # a deadline. :( if {$defer_count($task_item) > 5} { set defer_p f @@ -1300,13 +1300,13 @@ set defer_p t } - + } else { - + # the dependent item has a deadline - + if {[string is false [exists_and_not_null activity_time($task_item)]]} { set activity_time($task_item) 0 ns_log Notice "setting activity_time($task_item) 0 (location 3)" @@ -1317,7 +1317,7 @@ -end_date_j $latest_start($dependent_item) \ -hours_to_complete $activity_time($task_item) \ -hours_day $hours_day] - + if {[string is true $debug]} { ns_log Notice " my_latest_start: $my_latest_start" } @@ -2907,15 +2907,15 @@ if {[string is true $debug]} { ns_log Notice " dependent_item: $dependent_item" } - + if {[exists_and_not_null ongoing_task($dependent_item)]} { set defer_p f set my_latest_start "" if {[string is true $debug]} { ns_log Notice " ongoing_task, no defer" } - + } elseif {![exists_and_not_null latest_start($dependent_item)]} { # we defer the task if the dependent item has no # latest_start date set @@ -2932,7 +2932,7 @@ # be cleaned up better. Defering is necessary # given this algorithm, but there are # times when you don't want to defer. - # This is hackish, and I'm embarrased, but on + # This is hackish, and I'm embarrassed, but on # a deadline. :( if {$defer_count($task_item) > 5} { set defer_p f @@ -2949,13 +2949,13 @@ set defer_p t } - + } else { - + # the dependent item has a deadline - + if {[string is false [exists_and_not_null activity_time($task_item)]]} { set activity_time($task_item) 0 ns_log Notice "setting activity_time($task_item) 0 (location 3)" @@ -2966,7 +2966,7 @@ -end_date $latest_start($dependent_item) \ -hours_to_complete $activity_time($task_item) \ -hours_day $hours_day] - + if {[string is true $debug]} { ns_log Notice " my_latest_start: $my_latest_start" }