[Bps-public-commit] r13958 - in Prophet/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Thu Jul 10 15:32:41 EDT 2008


Author: sartak
Date: Thu Jul 10 15:32:39 2008
New Revision: 13958

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/Replica/Native.pm

Log:
 r64065 at onn:  sartak | 2008-07-10 15:32:04 -0400
 Iterate only over the keys (not values!) in set_record_props


Modified: Prophet/trunk/lib/Prophet/Replica/Native.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Replica/Native.pm	(original)
+++ Prophet/trunk/lib/Prophet/Replica/Native.pm	Thu Jul 10 15:32:39 2008
@@ -609,7 +609,7 @@
         type => $args{'type'}
     );
     my %new_props = %$old_props;
-    foreach my $prop ( %{ $args{props} } ) {
+    foreach my $prop ( keys %{ $args{props} } ) {
         if ( !defined $args{props}->{$prop} ) {
             delete $new_props{$prop};
         } else {



More information about the Bps-public-commit mailing list