reversed lazy checks as they cause optional fields to fail
edenc [Fri, 31 Oct 2008 15:35:19 +0000 (15:35 +0000)]
lib/Reaction/UI/ViewPort/Field.pm

index 27bbf58..ff89075 100644 (file)
@@ -32,8 +32,8 @@ sub _model_has_value {
   my $predicate = $self->attribute->get_predicate_method;
 
   if (!$predicate || $self->model->$predicate
-      || ($self->attribute->is_lazy
-          && !$self->attribute->is_lazy_fail)
+      # || ($self->attribute->is_lazy
+      #    && !$self->attribute->is_lazy_fail)
     ) {
     # edenc -- uncommented the lazy checks above
     # model->$predicate returns false if the value isn't set