Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15809

Checksum does not work well with localization (location types)

    Details

    • 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.

        Attachments

          Activity

            People

            • Assignee:
              sunil Sunil Pawar
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: