Merge pull request #1490 from deepak-srivastava/softcredits
[civicrm-core.git] / api / v3 / Generic.php
index 4c6bb40d8118d94548ea7dd6bda56572f928c9ab..392fd4cf722872bd583d9e1d093dde147f3260e4 100644 (file)
@@ -113,7 +113,7 @@ function civicrm_api3_generic_getfields($apiRequest) {
   $helper = '_' . $hypApiRequest['function'] . '_spec';
   if (function_exists($helper)) {
     // alter
-    $helper($metadata);
+    $helper($metadata, $apiRequest);
   }
 
   $fieldsToResolve = (array) CRM_Utils_Array::value('get_options', $apiOptions, array());