--- trunk/lib/Frey/Action.pm 2008/11/25 01:00:16 509 +++ trunk/lib/Frey/Action.pm 2008/11/25 13:38:53 510 @@ -125,6 +125,8 @@ my $attr = $class->meta->get_attribute( $name ); $attr_type = $attr->type_constraint->name if $attr->has_type_constraint; + $value = $attr->default( $name ) if ! $value && $attr->has_default; + if ( ref($config_params) eq 'HASH' ) { $value = $config_params->{$name}; } elsif ( ref($config_params) eq 'ARRAY' ) { @@ -136,7 +138,6 @@ $value_html = qq||; } - $value = $attr->default( $name ) if ! $value && $attr->has_default; $label_title = qq| title="| . $attr->documentation . qq|"| if $attr->has_documentation; $default->{$name} = $value unless defined $default->{$name};