From fddfc93f70c27f31c1423b81fe66f3e3ca8d251b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= <frank@ginkgostreet.com> Date: Mon, 12 May 2014 19:02:18 -0400 Subject: [PATCH] Fixed CRM-14677 by removing API result set limit. ---------------------------------------- * CRM-14677: "My billing address is the same as above" can break if profile has 25+ fields https://issues.civicrm.org/jira/browse/CRM-14677 --- CRM/Core/BAO/UFField.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Core/BAO/UFField.php b/CRM/Core/BAO/UFField.php index cf288ec0a0..843e97c38f 100644 --- a/CRM/Core/BAO/UFField.php +++ b/CRM/Core/BAO/UFField.php @@ -808,7 +808,11 @@ SELECT id $billing_id = CRM_Core_BAO_LocationType::getBilling(); list($prefixName, $index) = CRM_Utils_System::explode('-', $key, 2); - $profileFields = civicrm_api3('uf_field', 'get', array_merge($profileFilter, array('is_active' => 1, 'return' => 'field_name'))); + $profileFields = civicrm_api3('uf_field', 'get', array_merge($profileFilter, + array('is_active' => 1, 'return' => 'field_name', 'options' => array( + 'limit' => 0, + )) + )); //check for valid fields ( fields that are present in billing block ) $validBillingFields = array( 'first_name', -- 2.25.1