? textfield_default_value.patch
? includes/.form.inc.swp
Index: includes/form.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/form.inc,v
retrieving revision 1.265.2.33
diff -u -p -r1.265.2.33 form.inc
--- includes/form.inc	19 May 2010 15:02:32 -0000	1.265.2.33
+++ includes/form.inc	7 Jun 2010 19:34:02 -0000
@@ -1270,7 +1270,7 @@ function form_type_select_value($form, $
  *   for this element. Return nothing to use the default.
  */
 function form_type_textfield_value($form, $edit = FALSE) {
-  if ($edit !== FALSE) {
+  if ($edit !== FALSE && $edit !== NULL) {
     // Equate $edit to the form value to ensure it's marked for
     // validation.
     return str_replace(array("\r", "\n"), '', $edit);
