Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.0
-
Fix Version/s: 4.3.0
-
Component/s: CiviCRM API
-
Labels:None
Description
The API as far as I can tell is unable to get/create/update the location associated with an event.
In the schema, civicrm_event uses the old/archaic civicrm_loc_block table, which is kind of a bummer. To workaround the current problem I'm adding a LocBlock api, which combined with chaining allows you to fetch the address/phone/email from an event while calling event get.
However, when/if the schema ever gets fixed to ditch the loc_block table as we have already done for all other objects in civi AFAIK, then this solution will be obsolete.
If anyone has a better idea please let me know.
Some related discussion at http://forum.civicrm.org/index.php?topic=24013.0