X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FAPI%2FSubscriber%2FChainSubscriber.php;h=4e66cce043cec6415a2d8e6f57a0bf0a14603de4;hb=f85b80630e8324121dcdef2d7aacd432946b541f;hp=944dc71fa01cd1f181a080a0c6fcc789f041aa61;hpb=575b3ee0d53c806321c58f203f64bb49f2d87190;p=civicrm-core.git diff --git a/Civi/API/Subscriber/ChainSubscriber.php b/Civi/API/Subscriber/ChainSubscriber.php index 944dc71fa0..4e66cce043 100644 --- a/Civi/API/Subscriber/ChainSubscriber.php +++ b/Civi/API/Subscriber/ChainSubscriber.php @@ -91,7 +91,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; } @@ -156,7 +156,7 @@ class ChainSubscriber implements EventSubscriberInterface { if ($entity != 'Contact' && \CRM_Utils_Array::value(strtolower($subEntity . "_id"), $parentAPIValues)) { //e.g. if event_id is in the values returned & subentity is event //then pass in event_id as 'id' don't do this for contact as it - //does some wierd things like returning primary email & + //does some weird things like returning primary email & //thus limiting the ability to chain email //TODO - this might need the camel treatment $subParams['id'] = $parentAPIValues[$subEntity . "_id"];