Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17011

Broken smart group regression - membership type, membership status

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.6
    • Fix Version/s: 4.6.7
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Smart groups created prior to 4.6.5 are broken with the membership_type_id & membership_status_id being silently ignored .

      Here is the sql from a broken entry in the civicrm_saved_search table - full of custom values though

      INSERT INTO `civicrm_saved_search` (`id`, `form_values`, `mapping_id`, `search_custom_id`, `where_clause`, `select_tables`, `where_tables`) VALUES (119, 'a:42:{s:5:"qfKey";s:37:"3121d9f97cb8ddfbbdf9ebfe67bd224c_6896";s:12:"hidden_basic";s:1:"1";s:12:"contact_type";a:0:{}s:5:"group";a:0:{}s:12:"contact_tags";a:0:{}s:9:"sort_name";s:0:"";s:5:"email";s:0:"";s:14:"contact_source";s:0:"";s:9:"job_title";s:0:"";s:7:"uf_user";s:0:"";s:11:"uf_group_id";s:0:"";s:7:"privacy";a:6:

      {s:12:"do_not_phone";s:0:"";s:12:"do_not_email";s:0:"";s:11:"do_not_mail";s:0:"";s:10:"do_not_sms";s:0:"";s:12:"do_not_trade";s:0:"";s:13:"do_not_toggle";s:0:"";}

      s:13:"email_on_hold";a:1:

      {s:7:"on_hold";s:0:"";}

      s:30:"preferred_communication_method";a:5:

      {i:1;s:0:"";i:2;s:0:"";i:3;s:0:"";i:4;s:0:"";i:5;s:0:"";}

      s:18:"preferred_language";s:0:"";s:17:"hidden_CiviMember";s:1:"1";s:25:"member_membership_type_id";a:5:

      {i:10;s:1:"1";i:11;s:1:"1";i:12;s:1:"1";i:13;s:1:"1";i:14;s:1:"1";}

      s:17:"member_is_primary";s:1:"1";s:16:"member_status_id";a:3:

      {i:2;s:1:"1";i:3;s:1:"1";i:7;s:1:"1";}

      s:13:"member_source";s:0:"";s:20:"member_join_date_low";s:0:"";s:21:"member_join_date_high";s:0:"";s:21:"member_start_date_low";s:0:"";s:22:"member_start_date_high";s:0:"";s:19:"member_end_date_low";s:0:"";s:20:"member_end_date_high";s:0:"";s:10:"custom_123";s:0:"";s:10:"custom_126";s:0:"";s:15:"custom_124_from";s:0:"";s:13:"custom_124_to";s:0:"";s:15:"custom_125_from";s:0:"";s:13:"custom_125_to";s:0:"";s:15:"custom_127_from";s:0:"";s:13:"custom_127_to";s:0:"";s:15:"custom_128_from";s:0:"";s:13:"custom_128_to";s:0:"";s:10:"custom_174";s:0:"";s:15:"custom_178_from";s:0:"";s:13:"custom_178_to";s:0:"";s:10:"custom_179";s:0:"";s:4:"task";s:2:"13";s:8:"radio_ts";s:6:"ts_all";}', NULL, NULL, ' ( civicrm_membership.membership_type_id IN (\'10\',\'11\',\'12\',\'13\',\'14\') AND civicrm_membership.status_id IN (\'2\',\'3\',\'7\') AND civicrm_membership.is_test = 0 ) ', 'a:12:

      {s:15:"civicrm_contact";i:1;s:15:"civicrm_address";i:1;s:22:"civicrm_state_province";i:1;s:15:"civicrm_country";i:1;s:13:"civicrm_email";i:1;s:13:"civicrm_phone";i:1;s:10:"civicrm_im";i:1;s:19:"civicrm_worldregion";i:1;s:18:"civicrm_membership";i:1;s:6:"gender";i:1;s:17:"individual_prefix";i:1;s:17:"individual_suffix";i:1;}

      ', 'a:2:

      {s:15:"civicrm_contact";i:1;s:18:"civicrm_membership";i:1;}

      ');

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: