[Jifty-commit] r1934 - jifty/trunk/lib/Jifty/Web/Form

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Sep 4 19:16:55 EDT 2006


Author: clkao
Date: Mon Sep  4 19:13:55 2006
New Revision: 1934

Modified:
   jifty/trunk/lib/Jifty/Web/Form/Field.pm

Log:
force stringify the value because maketext is buggy with overloaded objects.

Modified: jifty/trunk/lib/Jifty/Web/Form/Field.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Field.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/Form/Field.pm	Mon Sep  4 19:13:55 2006
@@ -479,7 +479,8 @@
     my $self  = shift;
     my $field = '<span';
     $field .= qq! class="@{[ $self->classes ]}"> !;
-    $field .= HTML::Entities::encode_entities(_($self->current_value)) if defined $self->current_value;
+    # XXX: force stringify the value because maketext is buggy with overloaded objects.
+    $field .= HTML::Entities::encode_entities(_("@{[$self->current_value]}")) if defined $self->current_value;
     $field .= qq!</span>\n!;
     Jifty->web->out($field);
     return '';


More information about the Jifty-commit mailing list