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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom Data Multi-select / Checkbox: Search with SQL OR?
Pages: [1]

Author Topic: Custom Data Multi-select / Checkbox: Search with SQL OR?  (Read 899 times)

aaronchow

  • Guest
Custom Data Multi-select / Checkbox: Search with SQL OR?
August 25, 2010, 10:25:18 pm
I have seen couple topics back in 2008, and there was a patch that is available for version 2.x, so I'm posting this as a new topic.  http://forum.civicrm.org/index.php/topic,3215.0.html

I have created a custom data with a list of choices for my members to select, and I would like my visitors to search these choices on the Joomla front-end using Profile Search.  Everything seems to be fine, but when a visitor select more than one choices, it seems that CiviCRM is using SQL 'AND' rather than 'OR'. 

This becomes a problem.  Imagine if my members has the following selected:
  Member 1: 1st choice
  Member 2: 1st choice & 2nd choice

Then when a visitor search with both 1st and 2nd choices selected, only Member 2 will show up on the result.

Is this something that is easily hackable?  Any help is appreciated.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom Data Multi-select / Checkbox: Search with SQL OR?

This forum was archived on 2017-11-26.