Skip to content
Snippets Groups Projects
Commit ed8abbbb authored by colemanw's avatar colemanw
Browse files

Allow 'all' keyword in getfields.options

parent 2788147f
Branches
Tags
No related merge requests found
......@@ -246,7 +246,7 @@ function _civicrm_api3_generic_get_metadata_options(&$metadata, $entity, $fieldn
return;
}
if (!empty($metadata[$fieldname]['options']) || !in_array($fieldname, $fieldsToResolve)) {
if (!empty($metadata[$fieldname]['options']) || (!in_array($fieldname, $fieldsToResolve) && !in_array('all', $fieldsToResolve))) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment