[Bps-public-commit] SD branch, master, updated. 0.70-35-gf02bcca

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Sep 2 02:58:56 EDT 2009


The branch, master has been updated
       via  f02bcca6ccc39d9355b277cead100da74709f0e9 (commit)
      from  006f918514d6241f1e06b171dc933d346fc90c97 (commit)

Summary of changes:
 lib/App/SD/Replica/lighthouse/PushEncoder.pm |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit f02bcca6ccc39d9355b277cead100da74709f0e9
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Sep 2 14:58:42 2009 +0800

    make body be empty string by default

diff --git a/lib/App/SD/Replica/lighthouse/PushEncoder.pm b/lib/App/SD/Replica/lighthouse/PushEncoder.pm
index 02950d3..1ca4980 100644
--- a/lib/App/SD/Replica/lighthouse/PushEncoder.pm
+++ b/lib/App/SD/Replica/lighthouse/PushEncoder.pm
@@ -97,7 +97,7 @@ sub integrate_comment {
     my $ticket = $self->sync_source->lighthouse->ticket;
     $ticket->load( $ticket_id );
 
-    my %content = ( body => $props{'content'} || '[no body]' );
+    my %content = ( body => $props{'content'} || '' );
 
     $ticket->update(%content);
     return $ticket_id;
@@ -137,7 +137,7 @@ sub _recode_props_for_integrate {
             $attr{state} = $props{$key};
         }
         elsif ( $key eq 'content' ) {
-            $attr{body} = $props{$key} || '[no body]';
+            $attr{body} = $props{$key};
         }
         elsif ( $key eq 'milestone' ) {
             my $milestone = $self->sync_source->lighthouse->milestone;
@@ -168,6 +168,7 @@ sub _recode_props_for_integrate {
             $attr{$key} = $props{$key};
         }
     }
+    $attr{body} ||= '';
     return \%attr;
 }
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list