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 CiviMember (Moderator: Deepak Srivastava) »
  • civicrm_member fixup
Pages: [1]

Author Topic: civicrm_member fixup  (Read 794 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
civicrm_member fixup
January 13, 2010, 08:06:29 pm
Hello,

We have a whole lot of instances where an inherited membership should have been created (via an inherited membership type) but wasn't. It's fixed now in that if you re-save any membership record the missing record is created.

It seems to me that we 'just' need to create a line in civicrm_membership for each person who should have inherited a membership where:

id = autoincrement
contact_id = the individual
owner_membership_id = the org
all other field = the org's record

and that perhaps the easiest way to do this is straight sql. ( I had thought to re-commit all the memberships using the API or something but my original efforts didn't work so I'm thinking it may not be the easiest approach)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • civicrm_member fixup

This forum was archived on 2017-11-26.