[buddypress-trac] [BuddyPress Trac] #8556: BP_Notifications_Notification::get - error for meta_query

buddypress-trac noreply at wordpress.org
Tue Aug 24 06:41:53 UTC 2021


#8556: BP_Notifications_Notification::get    - error for meta_query
--------------------------+------------------------------
 Reporter:  shawfactor    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by shawfactor):

 actually the problem is caused by the join which creates two id fields in
 the result. The fix is quite easy.

 Simply change the original select statement to

 // SELECT.
     $select_sql = "SELECT n.*";

 So that only the $bp->notifications->table_name fields are selected

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


More information about the buddypress-trac mailing list