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

Add country code to civicrm_country

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.3.8, 4.4.3
    • Fix Version/s: Unscheduled
    • Component/s: CiviSMS
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      Within the "send" function for the ClickaTell extension, check if the phone number needs a country code at the beginning because this is required by ClickaTell. The recipient phone number is only changed in the PHP variable sent to ClickaTell, not in the database.

      The country code used is based on the country of the default organization in the CiviCRM database. Currently my code only has an impact for US and Canadian organizations. If the organization is in a country other than the US or Canada, then the recipient phone number is not changed.

      It would be easy (I think) to expand on this code to handle additional countries.

      The PR in github is at: https://github.com/civicrm/civicrm-core/pull/2447

      Question: Should the International phone system country codes be stored in the table "civicrm_country"?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sgladstone Sarah Gladstone
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: