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 (Moderator: Donald Lobo) »
  • CRM_Activity_BAO_Activity::create()
Pages: [1]

Author Topic: CRM_Activity_BAO_Activity::create()  (Read 1180 times)

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
CRM_Activity_BAO_Activity::create()
May 13, 2008, 07:52:37 pm
Gurus,

I'm trying to make the Drupal Ubercart module log a 'Purchase' activity in CiviCRM 2.0.3 when somebody buys something.  A call to CRM_Activity_BAO_Activity::create() fails if params['assignee_contact_id'] is undefined because it causes a call to deleteActivityAssignment() which also requires a value for assignee_contact_id.

I'm trying to figure out what to do about this.  One path would of course be to remove the code that blows up, but I don't know whether something else depends on it.  The other obvious path would be to figure out who to assign the activity to.  In the case of a purchase, that would probably be whoever would fill the order, but it isn't necessarily straightforward to figure out who that might be.

Suggestions?

TIA  -- Walt
http://dharmatech.org
oss@dharmatech.org
801.541.8671

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • CRM_Activity_BAO_Activity::create()

This forum was archived on 2017-11-26.