[buddypress-trac] [BuddyPress Trac] #7394: BP_Activity_Activity::__construct() sets id even if not valid

buddypress-trac noreply at wordpress.org
Fri Dec 16 14:01:33 UTC 2016


#7394: BP_Activity_Activity::__construct() sets id even if not valid
--------------------------+------------------------------
 Reporter:  jdgrimes      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Activity      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by jdgrimes):

 * keywords:   => has-patch


Comment:

 In [attachment:7394.diff] I've just modified `populate()` to set `id` to
 `0` if the row isn't found in the database, the same behavior as seen in
 other objects.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7394#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list