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) »
  • Possible to disable automatic creation of membership by relationship?
Pages: [1]

Author Topic: Possible to disable automatic creation of membership by relationship?  (Read 1013 times)

marthirial

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Possible to disable automatic creation of membership by relationship?
October 21, 2010, 08:33:25 am
Here it is how we have configured CiviCRM:

> Everybody is a contact > A contact becomes a member > All members belong to one org. > Member could become trainer.

We have two types of memberships A and B (and the Trainer one) but all belong to the same organization.

Sometimes, a member will have two memberships: Member and Trainer. The trainer then will train other members.  We are using Relationships to track who is training who. (Trainer <-> Trainee)

The issue:  When a trainer is related with a trainee, the trainee assumes the membership of the trainer automatically.  So if the trainee is Membership Type A and the Trainer is Membership Type B, the trainee now shows 2 memberships: Type A and B (by relation).

Is there a way to prevent this?  We want to just keep one contact associated with another for reference.
Can I do it with a custom field?  If so, how do we remove the Relationships tab from the profile overview?

Thanks, hope this is clear to get some help.

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
Re: Possible to disable automatic creation of membership by relationship?
October 21, 2010, 11:09:34 am
Sounds like there is an Inherited Membership Type that is using the Trainer<->Trainee relationship? Is that correct (look in your Membership Types). If so not sure how easy that is to remove, but at least we know what the issue is.
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

marthirial

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: Possible to disable automatic creation of membership by relationship?
October 21, 2010, 11:19:21 am
Quote from: peterd on October 21, 2010, 11:09:34 am
Sounds like there is an Inherited Membership Type that is using the Trainer<->Trainee relationship? Is that correct (look in your Membership Types). If so not sure how easy that is to remove, but at least we know what the issue is.

You are correct, the Membership had a Relationship Type assigned to it.  When I go back to edit the Membership, the Relationship Type is not a field but just text, so the question is if setting this column to NULL in the database will mess things up.

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
Re: Possible to disable automatic creation of membership by relationship?
October 21, 2010, 11:21:40 am
Can you be more specific about what you are about to set to NULL? I would probably throw a new inherited Membership in, set up a couple of test members with it, then NULLify something and check the outcome, before doing it on a Membership Type that is in active use.
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

marthirial

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: Possible to disable automatic creation of membership by relationship?
October 21, 2010, 11:25:43 am
The table civicrm_membership_type has a column relationship_type_id which right now has rows with 1 or NULL.  Rows with 1 had a relationship set, so we are going to turn everything in that column NULL.

The hope is that the automatically created memberships will stay there, but no new ones will be created from this point on.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Possible to disable automatic creation of membership by relationship?

This forum was archived on 2017-11-26.