Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-19629

Increase City field from 20 characters to 32 characters

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.9.5
    • Fix Version/s: 2.0
    • Component/s: Libraries
    • Labels:
      None
    • Database:
      MySQL
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      The city field has been limited to 20 characters. Can we increase this field to 32 characters? 20 seems an odd number and is limiting. It has resulted in in our city data being truncated and potentially there are others with the same issue. For instance, MDL-1572.

      While it is easy to increase the limit manually, it requires altering several files and the database table, which makes maintainability over upgrades a challenge.

      The Changes Required would be:
      ---------------------------------------------
      These files need to be edited at the line numbers indicated to allow for 32 chars in the city field:

      • \login\signup_form.php - line 51
      • \user\editlib.php - line 196
      • \admin\uploaduser_form.php - line 195
      • \lib\moodlelib.php -line 2998

      -Also, the database field mdl_user.city needs to be increased from 20 to 32.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                danmarsden Dan Marsden
                Reporter:
                ischuyt Ian S
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10