improvements to MatchingPassword to have a better layout, label, and error messages...
[catagits/Reaction.git] / lib / Reaction / UI / ViewPort / Field / RelatedObject.pm
index 83e0df5..3a3354f 100644 (file)
@@ -9,11 +9,11 @@ class RelatedObject is 'Reaction::UI::ViewPort::Field', which {
     isa => 'Str', is => 'ro', required => 1, default => sub { 'display_name' },
   );
 
-  implements _build_value_string => as {
+  around _value_string_from_value => sub {
+    my $orig = shift;
     my $self = shift;
     my $meth = $self->value_map_method;
-    my $value = $self->value;
-    return blessed($value) ? $value->$meth : $value;
+    return $self->$orig(@_)->$meth;
   };
 
 };