When selecting a contact using the built-in entityreference handler, it would be nice if the matching would happen on both the first name and the last name fields, ORed together.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nadavoid’s picture

The attached patch updates the existing selection handler by adding a tag and moving the conditions out to a hook_query_TAG_alter() so that the conditions can be ORed.

nadavoid’s picture

Status: Active » Needs review
levelos’s picture

Status: Needs review » Fixed

  • levelos committed 893d6ac on 7.x-1.x authored by nadavoid
    Issue #2431083 by nadavoid: Autocomplete filter for contacts to match on...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.