Bug in badge code

This topic contains 2 replies, has 2 voices, and was last updated by  Kiran 5 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #484872

    Patrick
    Full Member
    Post count: 17

    Hello all,

    geodirectory\includes\post-functions.php, line 786:

    case 'is_not_equal':
    	$match_found = (bool) ( $search != '' && $match_value == $search );

    Should be:

    case 'is_not_equal':
    	$match_found = (bool) ( $search != '' && $match_value != $search );
    #484879

    Patrick
    Full Member
    Post count: 17

    Also, badges don’t work for addresses.

    A (partial, but sufficient) fix would be change line 736 from:

    if ($match_field && $match_field !== 'post_date')

    to:

    if ($match_field && $match_field !== 'post_date' && $match_field !== 'street') 
    #485089

    Kiran
    Moderator
    Post count: 7069
Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket