projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abf2d85
)
Fix search builder participant options
author
Coleman Watts
<coleman@civicrm.org>
Wed, 15 Jan 2014 23:14:57 +0000
(15:14 -0800)
committer
Coleman Watts
<coleman@civicrm.org>
Wed, 15 Jan 2014 23:14:57 +0000
(15:14 -0800)
api/v3/Participant.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/Participant.php
b/api/v3/Participant.php
index e5e94411bda8da7308e64a4424f044716cb478ea..cf39df191faf60c15906c681fc9492873bbc15a0 100644
(file)
--- a/
api/v3/Participant.php
+++ b/
api/v3/Participant.php
@@
-121,6
+121,9
@@
function _civicrm_api3_participant_create_spec(&$params) {
$params['register_date']['api.default'] = "now";
$params['event_id']['api.required'] = 1;
$params['contact_id']['api.required'] = 1;
+ // These are for the sake of search builder options - can be removed if that is fixed
+ $params['role_id']['api.aliases'] = array('participant_role');
+ $params['status_id']['api.aliases'] = array('participant_status');
}
/**