fixed value_is_required
wreis [Mon, 1 Sep 2008 20:34:42 +0000 (20:34 +0000)]
lib/Reaction/UI/ViewPort/Field.pm

index d3dd2e7..1555f99 100644 (file)
@@ -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;