From 29c5b3bc639976919fe1f6903dd1aa08308efb7b Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 16 Apr 2013 21:26:16 -0700 Subject: [PATCH] minor api code tweak --- api/v3/LocBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/LocBlock.php b/api/v3/LocBlock.php index 77f0e5d574..1727080523 100644 --- a/api/v3/LocBlock.php +++ b/api/v3/LocBlock.php @@ -63,7 +63,7 @@ function civicrm_api3_loc_block_create($params) { } // Bother calling the api else { - $info['version'] = 3; + $info['version'] = $params['version']; $info['contact_id'] = CRM_Utils_Array::value('contact_id', $info, 'null'); $result = civicrm_api($item, 'create', $info); if (!empty($result['is_error'])) { -- 2.25.1