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 Profiles (Moderator: Dave Greenberg) »
  • Data saved in profile not picked up by Smart Group
Pages: [1]

Author Topic: Data saved in profile not picked up by Smart Group  (Read 587 times)

spalmstr

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
  • CiviCRM version: 4.5.4
  • CMS version: Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT
  • MySQL version: 5.6.21
  • PHP version: 5.6.0
Data saved in profile not picked up by Smart Group
September 27, 2012, 08:05:24 am
I've created a profile for an individual containing the Do Not Trade field.  I have a smart group that picks up members of an organization where Do Not Trade is zero.  If you set the Do Not Trade field in the profile and save it, as expected, the individual does not appear in the Smart Group.  If you clear the Do Not Trade checkbox and save the profile, the individual does not reappear in the Smart Group.  If you go to the contact record using CiviCRM Administration and edit, make no changes and then save it, the individual reappears in the Smart Group.

Any ideas?

I'm running CiviCRM 4.2.1 under Joomla 2.5.7

britebyte

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 2
  • CiviCRM version: Several 3.4+, 4.1+
  • CMS version: Drupal 6, Drupal7
  • MySQL version: Several 5.1+
  • PHP version: Several 5.2+
Re: Data saved in profile not picked up by Smart Group
October 03, 2012, 08:16:32 am
If your group is specifically set to filter on zero and it's not getting picked up it sounds like the field is not being set to zero by the profile edit. Maybe it is getting set to an empty string or null?

I would recommend taking a look in the database at the record after editing with the profile and after editing with the main contact record page. For example you can use phpmyadmin. If it is a custom field take a look at the civicrm_value_{your_custom_group_name_nn} tables and match based on the contact_id field.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Data saved in profile not picked up by Smart Group

This forum was archived on 2017-11-26.