projects
/
catagits/Reaction.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
b532e19
)
fixed Boolean->adopt_value_string
wreis [Thu, 4 Dec 2008 20:29:54 +0000 (20:29 +0000)]
lib/Reaction/UI/ViewPort/Field/Mutable/Boolean.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Reaction/UI/ViewPort/Field/Mutable/Boolean.pm
b/lib/Reaction/UI/ViewPort/Field/Mutable/Boolean.pm
index
9063fca
..
e725615
100644
(file)
--- 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) = @_;