diff options
author | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-09-09 14:41:26 +0000 |
---|---|---|
committer | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-09-09 14:41:26 +0000 |
commit | 13117749d4c7e23676a060bc2522dbfcf45ae7a6 (patch) | |
tree | 6d44fe57e12b098ddaad1a4a6b1c7f8aabe64745 /lib/Reaction/UI/ViewPort/Field | |
parent | 64aff9646af4a1d13d3509b197faf14970dfd2d9 (diff) | |
download | reaction-13117749d4c7e23676a060bc2522dbfcf45ae7a6.tar.gz reaction-13117749d4c7e23676a060bc2522dbfcf45ae7a6.zip |
proper fix for can_sync_to_action
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field')
-rw-r--r-- | lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm b/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm index 422c33b..b2d611d 100644 --- a/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm +++ b/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm @@ -32,7 +32,7 @@ sub adopt_value { sub can_sync_to_action { my $self = shift; - return 1 unless $self->needs_sync; + return unless $self->needs_sync; my $attr = $self->attribute; if ($self->has_value) { @@ -45,7 +45,7 @@ sub can_sync_to_action { } } } else { - return if $attr->is_required; + return if $self->model->attribute_is_required($attr); } return 1; }; |