CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Hardcode Wildcard on Advanced Search
Pages: [1]

Author Topic: Hardcode Wildcard on Advanced Search  (Read 915 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Hardcode Wildcard on Advanced Search
May 25, 2009, 01:15:05 pm
I need to hardcode the '%' wildcard into the advanced search query (similar to how i was able to do it for the dojo), so that if the intended return result was 'The Cycle Loft', a user could type 'cycle loft' and have it return (not have to type '%cycle loft'). CiviCRM 2.0.6 BTW.

I checked CRM/Contact/Form/Search/Advanced.php and
CRM/Contact/Form/Search.php, but neither seem to show the query. is there an easy place i can add this in?

thanks much!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Hardcode Wildcard on Advanced Search
May 25, 2009, 05:10:49 pm

check and fix in CRM/Contact/BAO/Query.php function sortName( )

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Hardcode Wildcard on Advanced Search

This forum was archived on 2017-11-26.