[Jifty-commit] r676 -

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Mar 8 00:44:28 EST 2006


Author: jesse
Date: Wed Mar  8 00:44:28 2006
New Revision: 676

Modified:
   /   (props changed)
   jifty/trunk/lib/Jifty/Record.pm

Log:
 r25809 at truegrounds:  jesse | 2006-03-07 21:18:55 -0800
 * We shouldn't be utf8-decoding values that are serialized as object references


Modified: jifty/trunk/lib/Jifty/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Record.pm	(original)
+++ jifty/trunk/lib/Jifty/Record.pm	Wed Mar  8 00:44:28 2006
@@ -78,7 +78,7 @@
         }
     }
 
-    my $id = $self->SUPER::create(%attribs);
+    my($id,$msg) = $self->SUPER::create(%attribs);
     $self->load_by_cols( id => $id ) if ($id);
     return wantarray ? ( $id, "Record created" ) : $id;
 }
@@ -231,7 +231,9 @@
     unless ($self->check_read_rights(@_)) {
         return (undef);
     }
-    return   Encode::decode_utf8($self->SUPER::_value(@_));
+    my $value = $self->SUPER::_value(@_);
+    return $value if ref $value;
+    return   Encode::decode_utf8($value);
 #   This is the "Right' way to do things according to audrey, but it breaks
 #    
 #    my $value = $self->SUPER::_value(@_);


More information about the Jifty-commit mailing list