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

Leading Zeros Truncated in Zip Codes for Generated Data

    Details

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

      Description

      GenerateData.php gets the zip code values via lookup in zipcodes table (~line 1308). Since these are stored in zipcodes table as INTs - we need to add leading zero(s) to the string prior to storing in our address records. (e.g. add '0000' to beginning of string and then right trim back to 5 chars).

      Pls recreate and commit generated.mysql once this is corrected.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: