[Catalyst] No database defaults with FormHandler and DBIC

Marc0 catalyst at hidden-primary.net
Mon Oct 31 08:15:43 GMT 2016


Am 31.10.2016 um 08:57 schrieb Martin Rehak:
> has_field 'capacity' => (type => 'PosInteger',
>         #default => '1',
>         label => 'Kapacita');

maybe add a "lazy => 1" to your commented "default => '1'"?

has_field q(capacity) => (
    type    => q(PosInteger),
    lazy    => 1,
    default => q(1),
    label   => q(Kapacita),
);

Regards
-- 
Marc0



More information about the Catalyst mailing list