Merge pull request #583 from yashodha/CRM-12463
[civicrm-core.git] / api / v3 / LocBlock.php
index 77f0e5d5746b2eb278007cddb88616466275dcfa..17270805238c2e49eaeb4cffb33d709e155a46f7 100644 (file)
@@ -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'])) {