reverting wrong fix to Field::Role::Mutable
wreis [Thu, 7 Aug 2008 23:50:10 +0000 (23:50 +0000)]
lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm

index 614a36c..b73114c 100644 (file)
@@ -43,11 +43,7 @@ sub can_sync_to_action {
       }
     }
   } else {
-    if ( $self->model->attribute_is_required($attr) ) {
-      my $tc = $attr->type_constraint;
-      $self->message($tc->get_message) if $tc->has_message;
-      return;
-    }
+    return if $attr->is_required;
   }
   return 1;
 };