CRM-16178 - Fix api.getfield to not attempt chaining
authorColeman Watts <coleman@civicrm.org>
Fri, 27 Mar 2015 21:49:42 +0000 (17:49 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 27 Mar 2015 21:49:42 +0000 (17:49 -0400)
Civi/API/Subscriber/ChainSubscriber.php

index a029faef6d7e5f1d8a542fe042fb044a088e2ee8..a56a8c564ec8fe6be13b4b55d497ec81ec5d993c 100644 (file)
@@ -90,7 +90,7 @@ class ChainSubscriber implements EventSubscriberInterface {
 
     // We don't need to worry about nested api in the getfields/getoptions
     // actions, so just return immediately.
-    if (in_array($action, array('getfields', 'getoptions'))) {
+    if (in_array($action, array('getfields', 'getfield', 'getoptions'))) {
       return;
     }