Skip to content
Snippets Groups Projects
Commit ac50ae37 authored by colemanw's avatar colemanw Committed by Seamus Lee
Browse files

Don't expose condition to api.getoptions

parent b56a4a96
Branches
Tags
No related merge requests found
......@@ -432,7 +432,7 @@ function civicrm_api3_generic_getoptions($apiRequest) {
// Validate 'context' from params
$context = CRM_Utils_Array::value('context', $apiRequest['params']);
CRM_Core_DAO::buildOptionsContext($context);
unset($apiRequest['params']['context'], $apiRequest['params']['field']);
unset($apiRequest['params']['context'], $apiRequest['params']['field'], $apiRequest['params']['condition']);
$baoName = _civicrm_api3_get_BAO($apiRequest['entity']);
$options = $baoName::buildOptions($fieldName, $context, $apiRequest['params']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment