[buddypress-trac] [BuddyPress] #5117: Group meta_query notice error

buddypress-trac noreply at wordpress.org
Fri Jul 26 17:34:04 UTC 2013


#5117: Group meta_query notice error
--------------------------+-----------------------------
 Reporter:  imath         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Groups        |    Version:  1.8
 Severity:  trivial       |   Keywords:
--------------------------+-----------------------------
 Hi,

 I'm discovering meta_query for Activities and Groups. Very interesting.

 In bp-groups-classes, i've noticed that there might be a line that
 shouldn't be there : at
 [http://buddypress.trac.wordpress.org/browser/trunk/bp-groups/bp-groups-
 classes.php#L384 line 384], {{{$total_sql['select']}}} doesn't seem to be
 set and it's concatenated with a value that doesn't seems to exist
 ({{{$meta_query_sql['join_total']}}}) as $meta_query_sql seems to have
 only two keys ('join' & 'where').

 ___

 i'm sorry to ask but, the meta_query parameter only accepts one meta_key
 query, isn't it ? i've tried to add some OR/AND relations on 2 meta_keys
 and the results are strange for activities (duplicates if an activity has
 the two meta_keys) and i got a sql error in groups (unknown column
 mt1.group_id)

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5117>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list