make sure fields do not auto-flesh into a CDBI hash when going to FM object types
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 17 Jul 2006 15:01:50 +0000 (15:01 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 17 Jul 2006 15:01:50 +0000 (15:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5038 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI.pm

index fb001da..777a07e 100644 (file)
@@ -168,7 +168,7 @@ sub to_fieldmapper {
 
        if (ref($obj)) {
                for my $field ( $fm->real_fields ) {
-                       $fm->$field( $obj->$field );
+                       $fm->$field( ''.$obj->$field );
                }
        }