projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert places where setters are used to set things
[civicrm-core.git]
/
api
/
v3
/
Im.php
diff --git
a/api/v3/Im.php
b/api/v3/Im.php
index aaabb5d5450d8b109904356787325d27442f11f6..711db2e57e76a645e0ff502f9cb3763df377f260 100644
(file)
--- a/
api/v3/Im.php
+++ b/
api/v3/Im.php
@@
-52,6
+52,10
@@
function civicrm_api3_im_create($params) {
*/
function _civicrm_api3_im_create_spec(&$params) {
$params['contact_id']['api.required'] = 1;
*/
function _civicrm_api3_im_create_spec(&$params) {
$params['contact_id']['api.required'] = 1;
+ $defaultLocation = CRM_Core_BAO_LocationType::getDefault();
+ if ($defaultLocation) {
+ $params['location_type_id']['api.default'] = $defaultLocation->id;
+ }
}
/**
}
/**