Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.11
-
Component/s: CiviCRM API, CiviMember, Core CiviCRM
-
Labels:None
-
Documentation Required?:None
Description
Membership renewal forms called with a checksum, the default values for the address fields are not set correctly.
Upon further investigation this seems to be due to the API layer: in order to find the Billing address to prefill the form, the getOptions API is called for location_type_id, and the string 'Billing' is searched. However the getOptions call returns the localized locations (ie. label column), so the search for 'Billing' fails if CiviCRM is localized.
See. api/api/v3/Profile.php, function _civicrm_api3_profile_getbillingpseudoprofile
This needs to be changed. I propose we add a parameter to the getOptions to return the 'name' column rather than the 'label' column.