/[Frey]/trunk/lib/Frey/Action.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Action.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 390 by dpavlin, Tue Nov 18 00:54:10 2008 UTC revision 399 by dpavlin, Tue Nov 18 02:15:11 2008 UTC
# Line 119  sub params_form { Line 119  sub params_form {
119                          ) . qq|</select>|;                          ) . qq|</select>|;
120                          $default->{$name} = $config_params->[0]->{$name};                          $default->{$name} = $config_params->[0]->{$name};
121                  } elsif ( my $attr = $class->meta->get_attribute( $name ) ) {                  } elsif ( my $attr = $class->meta->get_attribute( $name ) ) {
                         $attr_type = $attr->type_constraint->name;  
122                          if ( $attr->has_type_constraint ) {                          if ( $attr->has_type_constraint ) {
123                                    $attr_type = $attr->type_constraint->name;
124                                  if ( $attr->type_constraint->can('values') ) {                                  if ( $attr->type_constraint->can('values') ) {
125                                          $value_html = qq|<select name="$name">| . join("\n",                                          $value_html = qq|<select name="$name">| . join("\n",
126                                                  map { qq|<option value="$_">$_</option>| } @{ $attr->type_constraint->values }                                                  map { qq|<option value="$_">$_</option>| } @{ $attr->type_constraint->values }

Legend:
Removed from v.390  
changed lines
  Added in v.399

  ViewVC Help
Powered by ViewVC 1.1.26