Body: <p>CiviCRM 5.19.2 on Drupal 7.67</p>
  
  <p>We have a member who until recently was part of an organizational membership (by relationship). This year he moved on and took out an individual membership for the coming year. He paid for that himself and everything looked fine.</p>
  
  <p>Then, today I disabled his relationship to his former organization (unchecked the enabled box while editing the relationship). As soon as I had done that, the contribution he had made for his individual membership disappeared!</p>
  
  <p>I can confirm that it is NOT in the civicrm_contribution table. However, the transaction IS recorded in the log_civicrm_contribution table. I also have the email record of it and it's in Stripe.</p>
  
  <p>Is this a major bug or what?</p>
  
  <p>Thanks.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-02T04:55:06.203Z
Comments.Text: Anyone have any ideas here? Please.
Comments.UserDisplayName: The Amateur
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-02T22:41:07.677Z
Comments.Text: Yes, sounds like a bug. There is a table "civicrm_membership_payment" which links memberships to contributions via foreign keys. If the membership gets removed, then it might be removing the corresponding contribution via these keys.
  Perhaps see if you can reproduce it?
Comments.UserDisplayName: Alan Dixon
Tags: <civicontribute><relationships>
Title: Why was individual membership contribution deleted when their organizational relationship was disabled?
ThreadText: # Why was individual membership contribution deleted when their organizational relationship was disabled?
  
  (Asked by: username_0 on 2019-11-26)
  
  CiviCRM 5.19.2 on Drupal 7.67
  
  We have a member who until recently was part of an organizational membership (by relationship). This year he moved on and took out an individual membership for the coming year. He paid for that himself and everything looked fine.
  
  Then, today I disabled his relationship to his former organization (unchecked the enabled box while editing the relationship). As soon as I had done that, the contribution he had made for his individual membership disappeared!
  
  I can confirm that it is NOT in the civicrm\_contribution table. However, the transaction IS recorded in the log\_civicrm\_contribution table. I also have the email record of it and it's in Stripe.
  
  Is this a major bug or what?
  
  Thanks.
  
  **Tags:** civicontribute, relationships
  
  > **Comments:**
  > **username_0**: Anyone have any ideas here? Please.  
  > **username_1**: Yes, sounds like a bug. There is a table "civicrm_membership_payment" which links memberships to contributions via foreign keys. If the membership gets removed, then it might be removing the corresponding contribution via these keys. Perhaps see if you can reproduce it?  
  
  ---
  
  ## 0 answers
  
  