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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Updating participant via API changes register_date
Pages: [1]

Author Topic: Updating participant via API changes register_date  (Read 562 times)

jcm55

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 14
Updating participant via API changes register_date
February 28, 2012, 09:21:00 am
If I use the API to update a participant (say, to change their status from "Registered" to "Attended"), it seems that the register_date for that participant is changed to show the time of the update.  I'd like to preserve the original register_date, and I can do this by first doing a participant get to store the original register_date, and then passing it as a param in my participant update call.

That requires an extra API call though -- wondering if there is a better way?  Doesn't seem like register_date show be touched on an API update call, unless you explicitly pass a new value in the params.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Updating participant via API changes register_date
February 28, 2012, 01:08:05 pm
No, that is a bug - create a ticket for it - although I don't guarantee it'll be fixed in 4.1 cycle
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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Updating participant via API changes register_date

This forum was archived on 2017-11-26.