/[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 645 by dpavlin, Sun Nov 30 16:22:45 2008 UTC revision 715 by dpavlin, Thu Dec 4 17:33:39 2008 UTC
# Line 128  sub params_form { Line 128  sub params_form {
128                  grep {                  grep {
129                          ! $class->meta->get_attribute($_)->is_lazy                          ! $class->meta->get_attribute($_)->is_lazy
130                          && ! defined $default->{$_}                          && ! defined $default->{$_}
131                            && ! m{^_} # skip _private
132                  } $self->attributes                  } $self->attributes
133          ) {          ) {
134                  my $attr_type = '';                  my $attr_type = '';
# Line 156  sub params_form { Line 157  sub params_form {
157                                  $suffix = ' checked' if $value;                                  $suffix = ' checked' if $value;
158                                  $value_html = qq|<input type="checkbox" name="$name" title="$attr_type" value="$value"$suffix>|;                                  $value_html = qq|<input type="checkbox" name="$name" title="$attr_type" value="$value"$suffix>|;
159                                  push @checkboxes, $name;                                  push @checkboxes, $name;
160                  } elsif ( $attr_type !~ m{^(Str|Int)$} ) {                  } elsif ( $attr_type !~ m{^(Str|Int)$} || $value =~ $Frey::Web::re_html ) {
161                                  $value_html = qq|<textarea name="$name" title="$attr_type">$value</textarea>|;                                  $value_html = qq|<textarea name="$name" title="$attr_type">$value</textarea>|;
162                  }                  }
163                                    

Legend:
Removed from v.645  
changed lines
  Added in v.715

  ViewVC Help
Powered by ViewVC 1.1.26