projects
/
catagits/Reaction.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7aa889a
)
fixed value_is_required
wreis [Mon, 1 Sep 2008 20:34:42 +0000 (20:34 +0000)]
lib/Reaction/UI/ViewPort/Field.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Reaction/UI/ViewPort/Field.pm
b/lib/Reaction/UI/ViewPort/Field.pm
index
d3dd2e7
..
1555f99
100644
(file)
--- a/
lib/Reaction/UI/ViewPort/Field.pm
+++ b/
lib/Reaction/UI/ViewPort/Field.pm
@@
-59,7
+59,8
@@
sub _value_string_from_value {
sub _empty_string_value { '' }
sub value_is_required {
- shift->attribute->is_required;
+ my $self = shift;
+ $self->model->attribute_is_required($self->attribute);
}
__PACKAGE__->meta->make_immutable;