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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Views Integration: Can (or will) Civi+Views support OR search of checkbox fields
Pages: [1]

Author Topic: Views Integration: Can (or will) Civi+Views support OR search of checkbox fields  (Read 753 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Views Integration: Can (or will) Civi+Views support OR search of checkbox fields
March 22, 2011, 06:40:21 pm
I'm reviewing a custom field (checkbox/alphanumeric) behavior in Views+CiviCRM (3.3.5) integration and noticing that an "is one of" operator actually has the behavior of showing only results where "is only" = true.

Let me give you a working example.

Go to this page: http://www.korlontest.info/civicrm_contacts

And select "Tot" from the filter and click "apply".

The expected [at least MY expectations :)] behavior is that if "Tot" is selected and the operator is "is one of" that the first three contacts will be listed (they all have Tot) and the last one will not.  But the ACTUAL behavior is that only the FIRST of the contacts containing Tot as a value are listed, and the first one is listed because it contains no other values. 

Is this intentional, a bug, something that will be changed in 3.4 ... or something else, like my mis-placed expectations?
Try CiviTeacher: the online video tutorial CiviCRM learning library.

jalama

  • I post frequently
  • ***
  • Posts: 176
  • Karma: 22
    • Rooty Hollow LLC
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.1
  • PHP version: 5.2.5 and 5.3
Re: Views Integration: Can (or will) Civi+Views support OR search of checkbox fields
March 23, 2011, 05:50:32 am
I'm not following your example 100% (there is no tot option?).  But I think this was fixed in 3.4 with this patch http://issues.civicrm.org/jira/browse/CRM-7516
http://www.rootyhollow.com

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Views Integration: Can (or will) Civi+Views support OR search of checkbox fields
March 23, 2011, 11:06:53 am
Thanks that was exactly what I was looking for.  The patch works!  (even backported to 3.3.5)

Sorry about my demo not working, the handler got horked up somehow overnight (scratches head).
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Views Integration: Can (or will) Civi+Views support OR search of checkbox fields

This forum was archived on 2017-11-26.