Subject: | textareas not receiving content |
I have noticed that textareas are not getting content when called from to_field. The attached patch fixes the problem for me.
*** AsForm.pm 2004-06-22 10:52:29.000000000 -0400
--- AsForm.pm 2004-06-22 10:53:11.000000000 -0400
***************
*** 92,98 ****
# Right, have some of this!
eval "package $class; Class::DBI::Plugin::Type->import()";
my $type = $class->column_type($field);
! return $class->_to_textarea($field)
if $type and $type =~ /^(TEXT|BLOB)$/i;
return $self->_to_textfield($field);
}
--- 92,98 ----
# Right, have some of this!
eval "package $class; Class::DBI::Plugin::Type->import()";
my $type = $class->column_type($field);
! return $self->_to_textarea($field)
if $type and $type =~ /^(TEXT|BLOB)$/i;
return $self->_to_textfield($field);
}