diff options
author | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-08-07 23:50:10 +0000 |
---|---|---|
committer | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-08-07 23:50:10 +0000 |
commit | c0d494fbf4de3a6a9e14e120518cb52d8591577b (patch) | |
tree | fa83d1edcb0fc3d2ff977818412294fcd86c95bf /lib/Reaction/UI/ViewPort/Field | |
parent | d4c952a697e29ae19f516a278b2b617191da00e2 (diff) | |
download | reaction-c0d494fbf4de3a6a9e14e120518cb52d8591577b.tar.gz reaction-c0d494fbf4de3a6a9e14e120518cb52d8591577b.zip |
reverting wrong fix to Field::Role::Mutable
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field')
-rw-r--r-- | lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm b/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm index 614a36c..b73114c 100644 --- a/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm +++ b/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm @@ -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; }; |