projects
/
catagits/Reaction.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8f79fbf
)
quick fix for value issue
groditi [Thu, 17 Jan 2008 22:04:00 +0000 (22:04 +0000)]
lib/Reaction/UI/ViewPort/Field/Mutable/ChooseOne.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Reaction/UI/ViewPort/Field/Mutable/ChooseOne.pm
b/lib/Reaction/UI/ViewPort/Field/Mutable/ChooseOne.pm
index
f7a54bb
..
1948baa
100644
(file)
--- a/
lib/Reaction/UI/ViewPort/Field/Mutable/ChooseOne.pm
+++ b/
lib/Reaction/UI/ViewPort/Field/Mutable/ChooseOne.pm
@@
-23,7
+23,9
@@
class ChooseOne is 'Reaction::UI::ViewPort::Field', which {
implements _build_value_string => as {
my $self = shift;
- $self->obj_to_name($self->value->{value});
+ my $value = $self->value;
+ return $self->obj_to_name($value->{value}) if ref $value eq 'HASH';
+ $value;
};
implements is_current_value => as {