Answers.Body: <p>This relates to <a href="https://issues.civicrm.org/jira/browse/CRM-19545" rel="nofollow noreferrer">CRM-19545</a>.  <a href="https://github.com/civicrm/civicrm-drupal/pull/417" rel="nofollow noreferrer">PR-417</a> will hopefully be released in 4.7.16 but until then, you could apply the patch to restore the previous functionality.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-14T12:39:57.960Z
Answers.LastActivityDate: 2017-01-14T12:39:57.960Z
Answers.UserDisplayName: Aidan
Body: <p>Noticed this this morning after upgrading to 4.7.14 yesterday, so I believe there's a connection, but can't confirm 100%.</p>
  
  <p>I have a view that shows how many contact records (that have a custom field 'Leader') are marked Yes. That's done by doing a distinct count on contact IDs, and then using the custom field to filter those.</p>
  
  <p>This has worked absolutely fine until the upgrade, and now views does not show that custom field in the filter criteria. (FYI, I am also using CiviCRM entity and the entity field shows there)</p>
  
  <p>I have experienced similar before, so have went and replaced by CMS database integration code in settings.php to no avail.</p>
  
  <p>Does anyone have any ideas?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-21T01:42:54.077Z
Comments.Text: I'd experienced similar,, but its inconsistent..custom fields on contacts seem to work but I can't get  events participants or membership to work
Comments.UserDisplayName: Robinnz
Tags: <contacts><drupal-views><civicrm-entity>
Title: 4.7.14 Upgrade: Custom fields missing from views' filter criteria
ThreadText: # 4.7.14 Upgrade: Custom fields missing from views' filter criteria
  
  (Asked by: username_0 on 2016-12-13)
  
  Noticed this this morning after upgrading to 4.7.14 yesterday, so I believe there's a connection, but can't confirm 100%.
  
  I have a view that shows how many contact records (that have a custom field 'Leader') are marked Yes. That's done by doing a distinct count on contact IDs, and then using the custom field to filter those.
  
  This has worked absolutely fine until the upgrade, and now views does not show that custom field in the filter criteria. (FYI, I am also using CiviCRM entity and the entity field shows there)
  
  I have experienced similar before, so have went and replaced by CMS database integration code in settings.php to no avail.
  
  Does anyone have any ideas?
  
  **Tags:** contacts, drupal-views, civicrm-entity
  
  > **Comments:**
  > **username_1**: I'd experienced similar,, but its inconsistent..custom fields on contacts seem to work but I can't get  events participants or membership to work  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-01-14. Score: 3 | Accepted answer
  
  This relates to [CRM-19545](https://issues.civicrm.org/jira/browse/CRM-19545). [PR-417](https://github.com/civicrm/civicrm-drupal/pull/417) will hopefully be released in 4.7.16 but until then, you could apply the patch to restore the previous functionality.
  
  
  ---
  
  