[Maypole] AsForm and textarea

Brian Glass brian@glassbrian.com
Sun, 17 Oct 2004 18:36:50 -0400


Thanks for pointing that out. I thought I had checked that, but I guess 
I read the update date wrong. It was late at night...

I did this update and it fixed my <textarea> problems but broke enums. I 
realized I was running with a patched AsForm as per the following:

    http://lists.netthink.co.uk/pipermail/maypole/2004-April/000126.html

Is there any thought (Simon?) to adding this patch (or something 
similar) to AsForm?


Stephen Quinney wrote:

>On Sat, Oct 16, 2004 at 09:52:51PM -0400, Brian Glass wrote:
>  
>
>>to_field  doesn't seem to work for me when the field is a large text 
>>field (e.g. text, or blob). It creates a <textarea> which is what I 
>>want, but it doesn't populate the <textarea> with data from the database.
>>
>>I looked at the code and discovered that on line 100 (near the end of 
>>to_field) it returns $class->_to_textarea($field) when in fact it should 
>>return $self->_to_textarea($field).
>>    
>>
>
>It looks to me like you are using version 2.2 (or earlier) of
>CDBI::AsForm. The changelog for version 2.3 says:
>
>2.3   Mon Jul 19 12:22:50 BST 2004
>    - Patch from Randall Lucas to fix textarea breakage
>    - The tests work too
>
>A quick examination of the code does show that it is $self->_to_textarea
>and not $class->_to_textarea that is being called in to_field().
>
>So, the simple answer is, you need to upgrade your CDBI::AsForm module.
>
>Stephen Quinney
>
>
>  
>