[Bps-public-commit] r14433 - sd/trunk/lib/App/SD/Replica/RT

cwest at bestpractical.com cwest at bestpractical.com
Wed Jul 23 13:00:36 EDT 2008


Author: cwest
Date: Wed Jul 23 13:00:33 2008
New Revision: 14433

Modified:
   sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm

Log:
765019D4-58D7-11DD-B4D0-A1F33D9AEBE7: RT Created property becomes prop(created)

Modified: sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm	Wed Jul 23 13:00:33 2008
@@ -171,7 +171,7 @@
         }
     );
     $change->add_prop_change( name => 'content_type', old  => undef, new  => $args{'attachment'}->{'ContentType'});
-    $change->add_prop_change( name => 'date', old  => undef, new  => $self->date_to_iso($args{'txn'}->{'Created'}));
+    $change->add_prop_change( name => 'created', old  => undef, new  => $self->date_to_iso($args{'txn'}->{'Created'}));
     $change->add_prop_change( name => 'creator', old  => undef, new  => $self->resolve_user_id_to( email => $args{'attachment'}->{'Creator'}));
     $change->add_prop_change( name => 'content', old  => undef, new  => $args{'attachment'}->{'Content'});
     $change->add_prop_change( name => 'name', old  => undef, new  => $args{'attachment'}->{'Filename'});
@@ -314,7 +314,7 @@
         }
     );
 
-        $change->add_prop_change( name => 'date', old  => undef, new  => $self->date_to_iso($args{'txn'}->{'Created'}));
+        $change->add_prop_change( name => 'created', old  => undef, new  => $self->date_to_iso($args{'txn'}->{'Created'}));
 
     $change->add_prop_change( name => 'type', old  => undef, new  => $args{'txn'}->{'Type'});
     $change->add_prop_change( name => 'creator', old  => undef, new  => $self->resolve_user_id_to( email => $args{'txn'}->{'Creator'}));
@@ -476,7 +476,7 @@
     timeworked      => 'time_worked',
     timeleft        => 'time_left',
     lastupdated     => '_delete',
-    created         => '_delete',            # we should be porting the create date as a metaproperty
+    created         => 'created',
     Queue           => 'queue',
 );
 



More information about the Bps-public-commit mailing list