On 10/1/05, Guest via RT <bug-Maypole-FormBuilder@rt.cpan.org> wrote:
Show quoted text>
> This message about Maypole-FormBuilder was sent to you by guest <> via rt.cpan.org
>
> Full context and any attached attachments can be found at:
> <URL:
https://rt.cpan.org/Ticket/Display.html?id=14866 >
>
> Shouldn't this:
> $args->{fields} ||= [$proto->edit_columns];
> be in the ADDTO coderef?
>
Yes! Except it should be addto_columns, and it should be = - see below.
Show quoted text> Also, there are a couple places where you use = instead of ||=. I know I can override setup_form_mode, but it's a (minor) pain. It seems like all of the actions by default should use the options passed to as_form if supplied. Would it hurt anything?
>
>
I agree there are some ='s that should be ||='s, I'll have a look, but
I don't agree that the field list is one of them. The only other place
you can specify the field list is in the template, but if you do that,
the form in the template will have a different set of fields from the
form in the exported action method.
d.