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

Civicampaign petition includes all states for all enabled countries instead of just states for selected country

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.4
    • Fix Version/s: 4.3.5
    • Component/s: CiviCampaign
    • Labels:
      None

      Description

      The code in CRM/Campaign/Form/Petition/Signature.php is incomplete and lacks the special handling for country/state. In particular, the function buildCustom needs the statecountrymap code as found in other forms, such as the events forms. Also the function setDefaultValues needs a call to fixAllStateSelects after the defaults are filled in. I have made changes to my test platform, and have it working properly. I will be testing it and when I am satisfied I wouid like to submit the changes.

        Attachments

        1. petpat
          1.0 kB
          charles cook
        2. Signature434cc.php
          22 kB
          charles cook

          Activity

            People

            • Assignee:
              pratik.joshi Pratik Joshi
              Reporter:
              kifwebe charles cook
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: