Index: openacs-4/contrib/packages/project-manager/www/task-add-edit-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/task-add-edit-2.tcl,v diff -u -r1.1.2.13 -r1.1.2.14 --- openacs-4/contrib/packages/project-manager/www/task-add-edit-2.tcl 4 May 2005 06:13:53 -0000 1.1.2.13 +++ openacs-4/contrib/packages/project-manager/www/task-add-edit-2.tcl 15 Jun 2005 16:40:15 -0000 1.1.2.14 @@ -88,7 +88,17 @@ ad_page_contract_filter_proc_date log_date_$i log_date_$i if {[string is true $use_days_p]} { + # If empty we set these values to 0 to prevent an errror + # This is a bad place for form validation but in this + # case is probably what the users mean + if {[empty_string_p $estimated_days_work_min($i)]} { + set estimated_days_work_min($i) 0 + } + if {[empty_string_p $estimated_days_work_max($i)]} { + set estimated_days_work_max($i) 0 + } + # set the hours work if {[string is true $use_uncertain_completion_times_p]} {