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 Drupal Modules (Moderator: Donald Lobo) »
  • Views filter "is primary" filters out too much
Pages: [1]

Author Topic: Views filter "is primary" filters out too much  (Read 1471 times)

mariagwyn

  • I post frequently
  • ***
  • Posts: 149
  • Karma: 4
  • CiviCRM version: CiviCRM 3.3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5.2.14
  • PHP version: 5.0.91-50-log
Views filter "is primary" filters out too much
September 15, 2009, 08:52:09 am
I am using views to create a member directory from CiviCRM data (It integrates better than the profile option, I think).  Currently, I have filters set to "is primary" for phone, address and email field.  I did this because without it, views was listing all address/phone options as multiple rows in a table.  I only want the primary available for viewing.

The problem is, if a record is missing a primary phone number, that record does not appear in the view.  In other words, the filter is not only filtering down to primary data, it is filtering OUT if any single piece of primary data is missing.  

Is there a way around this?

Cross post: http://forum.civicrm.org/index.php/topic,8743.0.html
« Last Edit: September 15, 2009, 10:54:58 am by mariagwyn »

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: Views filter "is primary" filters out too much
September 15, 2009, 08:27:16 pm

i suspect there is, but u'll need to investigate a bit more into the views code and figure out how it can structure the query as a LEFT JOIN rather than an INNER JOIN

You might have to tweak the civicrm data definition arrays that it exposes to views

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 »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Views filter "is primary" filters out too much

This forum was archived on 2017-11-26.