projects
/
catagits/Reaction.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
24185a7
)
- fix default handling for Mutable::Boolean
matthewt [Wed, 27 Feb 2008 20:11:12 +0000 (20:11 +0000)]
lib/Reaction/UI/ViewPort/Field/Mutable/Boolean.pm
patch
|
blob
|
blame
|
history
lib/Reaction/UI/Widget/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
633f910
..
dfd936e
100644
(file)
--- a/
lib/Reaction/UI/ViewPort/Field/Mutable/Boolean.pm
+++ b/
lib/Reaction/UI/ViewPort/Field/Mutable/Boolean.pm
@@
-12,7
+12,7
@@
class Boolean is 'Reaction::UI::ViewPort::Field::Boolean', which{
implements BUILD => as {
my($self) = @_;
- $self->value(0) unless $self->has_value;
+ $self->value(0) unless $self->_model_has_value;
};
};
diff --git
a/lib/Reaction/UI/Widget/Field/Mutable/Boolean.pm
b/lib/Reaction/UI/Widget/Field/Mutable/Boolean.pm
index
7d98085
..
b94eaa0
100644
(file)
--- a/
lib/Reaction/UI/Widget/Field/Mutable/Boolean.pm
+++ b/
lib/Reaction/UI/Widget/Field/Mutable/Boolean.pm
@@
-9,7
+9,7
@@
class Boolean is 'Reaction::UI::Widget::Field::Mutable', which {
};
implements fragment is_checked {
- if ($_{viewport}->value) {
+ if ($_{viewport}->value_string) {
render 'is_checked_yes';
} else {
render 'is_checked_no';