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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • civicrm_activity_history has null values for entity_table
Pages: [1]

Author Topic: civicrm_activity_history has null values for entity_table  (Read 964 times)

yasheshb

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
civicrm_activity_history has null values for entity_table
December 21, 2007, 03:12:20 am
Hello.

     I'm working on a civicrm data testing module (Drupal) and came across some
interesting data in civicrm_activity_history table.
     It contains a NULL value for the field entity_table but it does have a positive integer (>0) for
the corresponding entity_id.

   This seems to definately corrupt data since there's no way i can link back to the entity.

   So trying some trial and error it seems that the most logical entry for entity_table would be
civicrm_contact but just to rule out any possibilities what other values would be valid for
entity_table ?

Thanks.

Yashesh

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_activity_history has null values for entity_table
December 21, 2007, 04:59:33 am

we've used activity history records to link to contribution/participant/mailing event and potentially other objects. you might want to do a grep on the code for civicrm_activity_create and find other cases

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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • civicrm_activity_history has null values for entity_table

This forum was archived on 2017-11-26.