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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • 2.1 beta5 and beta6 - Membership/relationship API issue
Pages: [1]

Author Topic: 2.1 beta5 and beta6 - Membership/relationship API issue  (Read 2628 times)

jhedstrom

  • Guest
2.1 beta5 and beta6 - Membership/relationship API issue
September 25, 2008, 01:04:14 pm
Greetings,

I'm not sure if this is a bug or not, or if there was a fundamental change in the API sometime during testing.

Prior to beta5, using the Relationship API function (civicrm_relationship_create($params)) to create a relationship would properly create a corresponding membership , if, for example, the new relationship defined an individual as an employee of an organization that had a membership (with the appropriate inheritance of membership for employees).

If I'm simply missing a step, I would appreciate feedback, or if I've uncovered a bug, I'll be happy to post a proper issue.

NOTE: This is an API-issue only. Creating relationships through the admin interface still properly creates the corresponding membership.

Thanks,

Jonathan

jhedstrom

  • Guest
Re: 2.1 beta5 and beta6 - Membership/relationship API issue
September 25, 2008, 01:32:41 pm
I've figured out a work-around, but I'd still be curious if this change was intentional...

The workaround is to call CRM_Contact_BAO_Relationship::disableEnableRelationship()  after either creating or disabling via the API...

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: 2.1 beta5 and beta6 - Membership/relationship API issue
September 25, 2008, 06:08:56 pm

can u file an issue for this. we'll take a look and fix in 2.1

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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • 2.1 beta5 and beta6 - Membership/relationship API issue

This forum was archived on 2017-11-26.