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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Group Type filter not working in 4.2 and editing Group Type name loses all data
Pages: [1]

Author Topic: Group Type filter not working in 4.2 and editing Group Type name loses all data  (Read 2754 times)

LindseyM

  • I post frequently
  • ***
  • Posts: 229
  • Karma: 8
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3.6
Group Type filter not working in 4.2 and editing Group Type name loses all data
November 19, 2012, 11:00:25 am
We're currently doing some work which relies on the use of Group Types (in addition to Access Control and Mailing List) and the ability to filter by Group Type. I access this via Administer - System Settings - Group Type. We're using 4.1 and this is working well but I have just tested 4.2 on the demo and there seem to be problems.

I created a new Group Type (Test) but when I used the filter all the groups showed. This was not the case when I filtered by Access Control or Mailing List. We're developing some great functionality concerning groups that will be of use to lots of Civi users but it does rely somewhat on Group Type - the ability to add more and filter by them. Eileen has also worked on some new functionality for 4.3 which relies on this and exposes Group Type in Advanced Search. Is this a bug?

Also, in both 4.1 and the demo I edited a new Group Type with disastrous results. All I did was change the name but the outcome was that all the groups which had been assigned this type lost it! (I'm currently re-assigning the Group Type to over 100 groups one by one as there's no way to batch update this.) With any other functionality a name edit would not wipe the info... is this another bug?

Do let me know and I'll report them on Jira if need be. Thanks.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Group Type filter not working in 4.2 and editing Group Type name loses all data
November 19, 2012, 11:22:35 am
Lindsey - Regarding the filter, this looks like a bug in the group search filter. You can file an issue in Jira for this, ideally with a patch for it.

Regarding changing the 'name' - I suspect you may have also changed the 'Value' for the group type which is the key. This will definitely result in 'disconnecting' the groups from your group type. If you haven't gotten far w/ 'fixing' your 100 groups - I would recommend going back to System Settings > Option Groups > Group Type and editing the Group Type record to restore the 'Value' in this group type to what it was previously (you can retain the new 'Title' for the group type).

The 'Option Groups' interface is definitely for technical users (which is why it's under System Settings). That said, we can add a warning next to the Value field - "Warning: changing the value of this field will unlink records which have been marked with this option value. This change can not be undone except by restoring the previous value."
Protect your investment in CiviCRM by  becoming a Member!

LindseyM

  • I post frequently
  • ***
  • Posts: 229
  • Karma: 8
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3.6
Re: Group Type filter not working in 4.2 and editing Group Type name loses all data
November 19, 2012, 01:16:04 pm
Hi Dave
Thanks for the ultra-speedy reply. I'm a non-technical user who has a little too much access for my own good and am learning from my mistake! I can't remember the previous Value entry. Is there a quick place James could look and find it for me?

Your warning suggestion next to the Value field would be a very helpful addition. Please can you explain to me the difference between Title, Value and Name in that setting. Title is what shows on the Manage Groups page and Value is obviously the key technical element, but what does that make Name?

I'll file the bug re the filter. We're doing some interesting work on Groups at the moment so I'll blog about it in the new year when we've completed it.

Lindsey




Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Group Type filter not working in 4.2 and editing Group Type name loses all data
November 19, 2012, 02:04:10 pm
The old value will be stored in the civicrm_group table in the group_type column for those group records. That column may contain several group types separated by a Ctrl-A character but James should be able to pick it out.

I would also recommend having James take a look at the filter problem as I'm not sure when we'll be able to get to it (most folks not using alternative group types so not a high priority).  The problem is in templates/CRM/Group/Form/Search.tpl starting around line 145. The code is only expecting 2 group types - so it only checks if the first two are "checked" and sends that info to the search. In order to support an open-ended number of group types - that code will need to be modified a bit to "loop" on all the group types present in the search form.
Protect your investment in CiviCRM by  becoming a Member!

LindseyM

  • I post frequently
  • ***
  • Posts: 229
  • Karma: 8
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3.6
Re: Group Type filter not working in 4.2 and editing Group Type name loses all data
November 19, 2012, 02:50:54 pm
Thanks Dave - we'll see what we can do.

jcasharpe

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 5
    • Woodlands Church
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10.0.13
  • PHP version: 5.5
Re: Group Type filter not working in 4.2 and editing Group Type name loses all data
May 10, 2013, 12:44:33 pm
I've posted a patch for this on http://issues.civicrm.org/jira/browse/CRM-11310

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Group Type filter not working in 4.2 and editing Group Type name loses all data

This forum was archived on 2017-11-26.