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 (Moderator: Dave Greenberg) »
  • Criteria Gender not saved in smart group
Pages: [1]

Author Topic: Criteria Gender not saved in smart group  (Read 1177 times)

iSchnappi

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.1.47
  • PHP version: 5.3.1
Criteria Gender not saved in smart group
February 14, 2013, 12:45:33 am
Whenever I create a smart group the criteria Gender is not saved. For example I use the criteria Birth Date before 31-12-1995 and Gender = Female in an Advanced Search. The result is 80 persons. I add them all to a new smart group and then the result is 143 people and the criteria for Gender is lost.   :o  All other criteria I tried work fine.

I'm using CiviCRM 4.2.7 on Drupal 7.19

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Criteria Gender not saved in smart group
February 14, 2013, 10:19:35 am
Can you replicate this on the public demo. I just tried on my local 4.2 and 4.3 installs and the gender filter is being maintained as expected. I did notice that in 4.2 the Deceased = False flag is ALSO being saved into the smart group criteria even though I did not select it. That minor bug appears to have been fixed for 4.3 already.
Protect your investment in CiviCRM by  becoming a Member!

iSchnappi

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.1.47
  • PHP version: 5.3.1
Re: Criteria Gender not saved in smart group
February 16, 2013, 04:36:23 am
Same problem on the demo server.

I made 2 screenshots where you can see that the criteria for gender is disappeared when creating the smart group. Smart group name is senior-female.

e2xl.nl/pics/Smart_group.jpg
e2xl.nl/pics/Advanced_search.jpg


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Criteria Gender not saved in smart group
February 18, 2013, 10:49:19 am
(No screen shots attached :-( )
I just retried on Joomla 4.2 demo and still not seeing the problem. Here's the smart group (criteria is just Gender = Female).

http://joomla.demo.civicrm.org/administrator/?option=com_civicrm&task=civicrm/group/search&reset=1&force=1&context=smog&gid=6

... and a screenshot of the Edit Smart Group Criteria screen
Protect your investment in CiviCRM by  becoming a Member!

iSchnappi

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.1.47
  • PHP version: 5.3.1
Re: Criteria Gender not saved in smart group
February 19, 2013, 12:31:34 am
Hi Dave,

Sorry, I forgot to include the screenshots so here they are. These are taken from http://drupal.demo.civicrm.org last sathurday.

You see the criteria for Gender in advanced search. But when choosing new smart group this criteria gets lost.

Strangely, when I try this today on http://drupal.demo.civicrm.org all works fine. I notice 2 differences: the language is now English (was French last sathurday) and it is in debug mode.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Criteria Gender not saved in smart group
February 19, 2013, 05:09:12 pm
Ok so language setting is the factor here. I was able to replicate in 4.3 after setting language to French (also tried w/ Dutch and bug is present). Discussing with some folks on IRC to get some clues as to why non-English language would cause this bug.
Protect your investment in CiviCRM by  becoming a Member!

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Criteria Gender not saved in smart group
February 19, 2013, 06:14:08 pm
Opened an issue in the bug tracker: http://issues.civicrm.org/jira/browse/CRM-11928
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

iSchnappi

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.1.47
  • PHP version: 5.3.1
Re: Criteria Gender not saved in smart group
February 22, 2013, 02:17:12 am
Hope this can be fixed in next release. For now I'll switch to English language.

iSchnappi

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.1.47
  • PHP version: 5.3.1
Re: Criteria Gender not saved in smart group
February 22, 2013, 02:34:31 am
Work around: switch language to English, create your smart groups, switch back to your own language

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Criteria Gender not saved in smart group
February 22, 2013, 04:54:06 am
Lobo fixed it in 4.3, you can see the changes to the code here:
https://fisheye2.atlassian.com/changelog/CiviCRM?cs=45765
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Criteria Gender not saved in smart group

This forum was archived on 2017-11-26.