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) »
  • Changing 'contact type' for existing custom data group
Pages: [1]

Author Topic: Changing 'contact type' for existing custom data group  (Read 695 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Changing 'contact type' for existing custom data group
November 14, 2009, 07:55:41 pm
Hi - seem to have hit this twice in short succession so thought it would be good to get this answered on here.

A Custom Data group was set up as for Contacts - it should have been set up for only Individuals.

TO avoid recreating the fields and doing a copy via sql, should it be possible to back-end modify the Group and Fields so they behave correctly as 'Individual' fields, namely so they will show up under 'individuals' in Import, Export and Profiles.

I know chris engaged briefly with lobo on this when it failed for us the first time. Is there a route to do this 'conversion' of Group/Fields?

Thanks
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Changing 'contact type' for existing custom data group
November 14, 2009, 09:00:51 pm
i just gave it a quick try in 3.0 and it worked fine:

1. change extends in civicrm_custom_group;

update civicrm_custom_group set extends = 'Individual' where id = 1;

2. truncate the cache table

truncate civicrm_cache ; truncate civicrm_acl_cache;

the above seemed to work with our generated data set

lobo

« Last Edit: November 14, 2009, 09:02:26 pm by Donald Lobo »
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Changing 'contact type' for existing custom data group

This forum was archived on 2017-11-26.