[buddypress-trac] [BuddyPress Trac] #7202: BP_XProfile_Query::find_compatible_table_alias uses field_id instead of field

buddypress-trac noreply at wordpress.org
Wed Jul 27 10:10:52 UTC 2016


#7202: BP_XProfile_Query::find_compatible_table_alias uses field_id instead of
field
------------------------------+-----------------------------
 Reporter:  thomaslhotta      |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Extended Profile  |    Version:  2.6.1.1
 Severity:  normal            |   Keywords:
------------------------------+-----------------------------
 Hi,

 was just playing around with the BP_XProfile_Query class and discovered
 this on line 518:


 {{{
 } elseif ( isset( $sibling['field_id'] ) && isset( $clause['field_id'] )
 && $sibling['field_id'] === $clause['field_id'] ) {
     $compatible_compares = array( '!=', 'NOT IN', 'NOT LIKE' );
 }
 }}}

 Shouldn't the array key be {{{field}}} instead of {{{field_id}}} for this
 to work?

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


More information about the buddypress-trac mailing list