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 CiviEvent (Moderator: Yashodha Chaku) »
  • Civicrm_line_item table not cleaned up after delete process
Pages: [1]

Author Topic: Civicrm_line_item table not cleaned up after delete process  (Read 654 times)

annaleevk

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 3
  • Carpe Noctem!
    • Women in Development, New York
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.48
  • PHP version: 5.2.14
Civicrm_line_item table not cleaned up after delete process
July 26, 2011, 11:08:31 am
Hi!  Was not sure where to post this but stumbled across this as I was running a database conversion.  The civicrm_line_item table does not delete records when the contact records no longer exist.

Here's the sequence of events to reproduce the case.

1.  Create an event registration with multiple registrants in test mode.  1 paying registrant with 2 guests.
2.  Delete the event registration records from the guest contact records.
3.  Permanently delete the guest contact records.
4.  Delete the original or paying registrant's event registration record.  Note:  The line_item record from this record is deleted from the line_item table....HOWEVER
5.  The guest records are not deleted from the line_item table.  Note:  The guest participant records are deleted from the participant table.

The result is that there are 2 orphaned records that now reside in the civicrm_line_item table.  Let me know if there is somewhere else this should be posted.
Annalee Van Kleeck
Lyric Systems, LLC
201 951.8711
annalee@lyricsystems.com

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: Civicrm_line_item table not cleaned up after delete process
July 27, 2011, 12:27:24 am

Can you please file an issue and link to this post. Would be great if you can investigate and attach a patch to the issue that deletes the line items involved

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Civicrm_line_item table not cleaned up after delete process

This forum was archived on 2017-11-26.