Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/19/2016 05:42:41 PM (8 years ago)
Author:
boonebgorges
Message:

In BP_XProfile_Query, fix variable name typo that prevented table JOINs from shared between meta query clauses.

Introduced in [9178].

Props thomaslhotta, r-a-y.
Fixes #7202.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-query.php

    r10434 r11018  
    516516
    517517            // Clauses joined by AND with "negative" operators share a join only if they also share a key.
    518             } elseif ( isset( $sibling['field_id'] ) && isset( $clause['field_id'] ) && $sibling['field_id'] === $clause['field_id'] ) {
     518            } elseif ( isset( $sibling['field'] ) && isset( $clause['field'] ) && $sibling['field'] === $clause['field'] ) {
    519519                $compatible_compares = array( '!=', 'NOT IN', 'NOT LIKE' );
    520520            }
Note: See TracChangeset for help on using the changeset viewer.