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.23.2.2 -r1.23.2.3 --- openacs-4/contrib/packages/project-manager/www/task-add-edit.tcl 5 Dec 2003 01:09:19 -0000 1.23.2.2 +++ openacs-4/contrib/packages/project-manager/www/task-add-edit.tcl 13 Dec 2003 01:19:54 -0000 1.23.2.3 @@ -1,10 +1,14 @@ -ns_log notice task add edit page -set mypage [ns_getform] -if {[string equal "" $mypage]} { - ns_log notice no form was submitted on my page -} else { - ns_log notice the following form was submitted on my page - ns_set print $mypage +set debug 1 + +if {[string equal $debug 1]} { + ns_log notice task add edit page + set mypage [ns_getform] + if {[string equal "" $mypage]} { + ns_log notice no form was submitted on my page + } else { + ns_log notice the following form was submitted on my page + ns_set print $mypage + } } ad_page_contract { @@ -284,9 +288,9 @@ for {set i 1} {$i <= $number} {incr i} { set task_title_arr($i) "" set description_arr($i) "" - set estimated_hours_arr($i) "" - set estimated_hours_min_arr($i) "" - set estimated_hours_max_arr($i) "" + set estimated_hours_arr($i) "0" + set estimated_hours_min_arr($i) "0" + set estimated_hours_max_arr($i) "0" set use_dependency_arr($i) "" set parent_arr($i) "" set end_date_arr($i) "" @@ -304,7 +308,7 @@ set estimated_hours_arr($i) $estimated_hours_work_v($ptask_id) set estimated_hours_min_arr($i) $estimated_hours_work_min_v($ptask_id) set estimated_hours_max_arr($i) $estimated_hours_work_max_v($ptask_id) - + if {[exists_and_not_null dependency_v($ptask_id)]} { set use_dependency_arr($i) [list checked ""] } else { @@ -376,7 +380,7 @@ {value {$description_arr($i)}} \ ] \ [list \ - use_dependency_p.$i:text(checkbox) \ + use_dependency_p.$i:text(checkbox),optional \ {label "Use dependency"} \ {options {{"" "on"}}} \ {html $use_dependency_arr($i)} \