diff options
author | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-12-04 20:29:54 +0000 |
---|---|---|
committer | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-12-04 20:29:54 +0000 |
commit | 3d336c5567aec0779e6981138275c67ff8e6f2d0 (patch) | |
tree | 376e799353e5e552dd4e87c8bb0501a9fbec013d /lib/Reaction/UI/ViewPort/Field | |
parent | b532e19609ec2f0ce8589537c3c3ccdb205a0644 (diff) | |
download | reaction-3d336c5567aec0779e6981138275c67ff8e6f2d0.tar.gz reaction-3d336c5567aec0779e6981138275c67ff8e6f2d0.zip |
fixed Boolean->adopt_value_string
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field')
-rw-r--r-- | lib/Reaction/UI/ViewPort/Field/Mutable/Boolean.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/Mutable/Boolean.pm b/lib/Reaction/UI/ViewPort/Field/Mutable/Boolean.pm index 9063fca..e725615 100644 --- a/lib/Reaction/UI/ViewPort/Field/Mutable/Boolean.pm +++ b/lib/Reaction/UI/ViewPort/Field/Mutable/Boolean.pm @@ -8,7 +8,7 @@ extends 'Reaction::UI::ViewPort::Field::Boolean'; with 'Reaction::UI::ViewPort::Field::Role::Mutable::Simple'; sub adopt_value_string { my ($self) = @_; - $self->value($self->value_string); + $self->value($self->value_string||0); }; sub BUILD { my($self) = @_; |