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 -r1.27.2.1 --- openacs-4/contrib/packages/project-manager/www/task-add-edit.tcl 12 Mar 2004 13:44:45 -0000 1.27 +++ openacs-4/contrib/packages/project-manager/www/task-add-edit.tcl 23 Mar 2004 07:53:15 -0000 1.27.2.1 @@ -652,7 +652,7 @@ if {![exists_and_not_null end_date_$i]} { - set end_date_$i "{} {} {} {} {} {}" + set end_date_$i [db_null] } # set up variables, pulling from arrays @@ -668,6 +668,12 @@ ns_log Notice "end date: $p_end_date" + # Make sure we do not insert bogus stuff into the database. + + if {$p_end_date == "{} {} {} {} {} {}"} { + set p_end_date [db_null] + } + # add in the new task if {[string equal $p_skip_p "f"]} {