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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Issue with relationship API in 2.2
Pages: [1]

Author Topic: Issue with relationship API in 2.2  (Read 1385 times)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Issue with relationship API in 2.2
March 18, 2009, 07:53:33 am
I have uncovered an issue with the relationship API, to be specific the relationship_create function. It is not a big problem, but one to be aware of if you ever encounter it.
I had created a relationshiptype in CiviCRM called "Woningzoekende" (Dutch) and configured it from Person to Person. This was wrong, it should have been from Person to Household. In my import script I used the API-function relationship_create, trying to link a person to a household. The function did not execute the create (which was correct) but did not report an error either, it simply did not do it. Luckily I did check the configuration after not too may hours of sweat...... ;)........and once corrected it worked fine!

Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

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: Issue with relationship API in 2.2
March 18, 2009, 09:29:35 am

can u please file an issue and we'll fix it in 2.2.1

thanx

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

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Issue with relationship API in 2.2
March 18, 2009, 09:32:39 am
will do! I am hoping to build my experience with OOP and PHP and then be of some more assistance.
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Issue with relationship API in 2.2

This forum was archived on 2017-11-26.