[buddypress-trac] [BuddyPress] #2314: Updating Activity record via $activity->save() results in action overwritten

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Apr 17 02:19:37 UTC 2010


#2314: Updating Activity record via $activity->save() results in action
overwritten
----------------------+-----------------------------------------------------
 Reporter:  nuprn1    |       Owner:       
     Type:  defect    |      Status:  new  
 Priority:  normal    |   Milestone:  1.2.4
Component:  Activity  |    Keywords:       
----------------------+-----------------------------------------------------
 Using this method to update the date but the action was overwritten with
 the type value.


 {{{
         $activity = new BP_Activity_Activity( $activity_id );
         $activity->date_recorded = gmdate( "Y-m-d H:i:s" );
         if ( !$activity->save() )
                 return false;
 }}}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2314>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list