[Bps-public-commit] r14134 - in sd/trunk: lib/App/SD/Replica/Hiveminder

sartak at bestpractical.com sartak at bestpractical.com
Tue Jul 15 20:28:17 EDT 2008


Author: sartak
Date: Tue Jul 15 20:27:30 2008
New Revision: 14134

Modified:
   sd/trunk/   (props changed)
   sd/trunk/lib/App/SD/Replica/Hiveminder/PullEncoder.pm

Log:
 r64332 at onn:  sartak | 2008-07-15 20:20:39 -0400
 Make sure we have a record locator before adding the prop change for it


Modified: sd/trunk/lib/App/SD/Replica/Hiveminder/PullEncoder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/Hiveminder/PullEncoder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/Hiveminder/PullEncoder.pm	Tue Jul 15 20:27:30 2008
@@ -59,15 +59,17 @@
                 $change->add_prop_change( { new => $previous_state->{$key}, old => undef, name => $key } );
             }
 
-            my $origin_display = $self->sync_source->hm_url
-                               . '/task/'
-                               . $previous_state->{record_locator};
-
-            $change->add_prop_change({
-                name => '_origin_display',
-                old  => undef,
-                new  => $origin_display,
-            });
+            if ($previous_state->{record_locator}) {
+                my $origin_display = $self->sync_source->hm_url
+                                . '/task/'
+                                . $previous_state->{record_locator};
+
+                $change->add_prop_change({
+                    name => '_origin_display',
+                    old  => undef,
+                    new  => $origin_display,
+                });
+            }
 
         }
         $changeset->add_change( { change => $change } );



More information about the Bps-public-commit mailing list