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) »
  • api civicrm_membership create : doesn't properly create memberships for related
Pages: [1]

Author Topic: api civicrm_membership create : doesn't properly create memberships for related  (Read 487 times)

cmadou

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5
  • MySQL version: 5.0.10
  • PHP version: 5.4.7
api civicrm_membership create : doesn't properly create memberships for related
February 05, 2013, 04:44:00 am
Hi,

I have an issue with creating memberships, using the api. It looks similar to a previous closed bug :
issues.civicrm.org/jira/browse/CRM-3151

I have a membership type with a relationship on a household.
When i add memberships (expired and current) on that household, the memberships are
only added correctly for the household, but not for related contacts.
For the related contacts just the first added membership exists, (and) or the current one.
When i do the same thing on the civi gui, it works correctly.
When i use the api, add 1 membership with 1 script call, it also works.
But when i use a loop for creating more than 1 membership, than the problem occurs.
(the return values of the api call shows me an id what indicates that the membership was
created, but deleted afterwards ?)


What can i do to create them correctly ?

Best regards,
Chris Madou

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: api civicrm_membership create : doesn't properly create memberships for related
February 05, 2013, 11:49:31 pm
Sounds like a bug in the API. Could you add it as an issue to the Issue Tracker? (http://issues.civicrm.org) And it would be really really nice if you would be able to fix it? Do you have PHP experience?
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) »
  • api civicrm_membership create : doesn't properly create memberships for related

This forum was archived on 2017-11-26.