--- trunk/lib/Frey/Run.pm 2008/11/16 17:50:25 363 +++ trunk/lib/Frey/Run.pm 2008/11/16 19:50:36 364 @@ -71,12 +71,11 @@ $html = qq|

$class params

|; my $a; - my @attrs = map { $a->{$_}++; $_ } $self->attribute_order; + my @attrs = map { $a->{$_}++; $_ } @{ $self->attribute_order }; push @attrs, $_ foreach grep { ! $a->{$_} } map { $_->name } @required; warn "# attrs = ",dump( @attrs ); foreach my $name ( @attrs ) { - my $attr = $class->meta->get_attribute( $name ); my $type = $name =~ m/^pass/ ? 'password' : 'text'; my $value = ''; my $value_html = ''; @@ -89,12 +88,16 @@ qq|| } @$values ) . qq||; - } elsif ( $attr->has_type_constraint && $attr->type_constraint->can('values') ) { - $value_html = qq||; - } elsif ( $attr->has_default ) { - $value = $attr->default( $name ); + } elsif ( my $attr = $class->meta->get_attribute( $name ) ) { + if ( $attr->has_type_constraint && $attr->type_constraint->can('values') ) { + $value_html = qq||; + } elsif ( $attr->has_default ) { + $value = $attr->default( $name ); + } + } else { + warn "wired attribute $name"; } $value_html = qq|| unless $value_html;