From ed8abbbb8f28f752fe5e559b537ed946406d5b20 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 10 Jul 2013 20:56:21 -0700 Subject: [PATCH] Allow 'all' keyword in getfields.options --- api/v3/Generic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Generic.php b/api/v3/Generic.php index 050a077ca8..2d5b6fb431 100644 --- a/api/v3/Generic.php +++ b/api/v3/Generic.php @@ -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; } -- 2.25.1