RSESPRT-64: Support saving more than 25 records in Profile.submit api
authorDebarshi Bhaumik <debarshi@compucorp.co.uk>
Wed, 30 Jun 2021 10:42:57 +0000 (16:12 +0530)
committerDebarshi Bhaumik <debarshi@compucorp.co.uk>
Thu, 1 Jul 2021 06:49:52 +0000 (12:19 +0530)
api/v3/Profile.php

index c7c337d20985a520a5ffbc5e3ec3b99c3dcb73ad..eb78e51e0dfe6932f04d2e7bfbe7d58d7646e842 100644 (file)
@@ -500,7 +500,7 @@ function _civicrm_api3_buildprofile_submitfields($profileID, $optionsBehaviour,
   if (isset($profileFields[$profileID])) {
     return $profileFields[$profileID];
   }
-  $fields = civicrm_api3('uf_field', 'get', ['uf_group_id' => $profileID]);
+  $fields = civicrm_api3('uf_field', 'get', ['uf_group_id' => $profileID, 'options' => ['limit' => 0]]);
   $entities = [];
   foreach ($fields['values'] as $field) {
     if (!$field['is_active']) {