From: Seamus Lee Date: Wed, 3 Aug 2016 09:31:38 +0000 (+1000) Subject: Fix LocBlock Test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9e1bd556635bbc75f4b8bb5e3586e9fc5a596bf5;p=civicrm-core.git Fix LocBlock Test --- diff --git a/api/v3/LocBlock.php b/api/v3/LocBlock.php index 610ee7ab47..0db1cd3492 100644 --- a/api/v3/LocBlock.php +++ b/api/v3/LocBlock.php @@ -45,7 +45,7 @@ */ function civicrm_api3_loc_block_create($params) { $entities = array(); - civicrm_api3_verify_one_mandatory($params, NULL, array('address', 'phone', 'im', 'email')); + civicrm_api3_verify_one_mandatory($params, NULL, array('address', 'address_id', 'phone', 'phone_id', 'im', 'im_id', 'email', 'email_id')); // Call the appropriate api to create entities if any are passed in the params // This is basically chaining but in reverse - we create the sub-entities first // This exists because chainging does not work in reverse, or with keys like 'email_2'