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

Custom field "name" field too short

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • STABLE backlog, 4.5.3
    • Other
    • None
    • MOODLE_405_STABLE

      In addition to https://tracker.moodle.org/browse/MDL-84763 which mentions the category name field being too short, the exact issue occurs on a field name.

      Summarizing from the aforementioned issue, the field can only contain 400 characters maximum, which is too short when wanting to support a significant list of languages (if one can call 6 languages "significant")

       

      Reproduction steps:

      1. Make sure enough language packs are installed and multilang filtering is enabled
      2. Open Course custom fields page by "Site administration" > "Courses" tab > "Course custom fields".
      3. Navigate to one of the categories that are there and choose to add a random field to add (I used a "short text" field).
      4. In the form that appears, enter a shortname and then, in the name field type "<span class="multilang" lang="en">A somewhat longer field name (EN)</span><span class="multilang" lang="de">A somewhat longer field name (DE)</span><span class="multilang" lang="fr">A somewhat longer field name (FR)</span><span class="multilang" lang="id">A somewhat longer field name (ID)</span><span class="multilang" lang="nl">A somewhat longer field name (NL)</span><span class="multilang" lang="tr">A somewhat longer field name (TR)</span>
        ", then try to save the changes.
      5. Confirm you run into a "dmlwriteexception" which mentions that the data is too long (the actual message may vary depending on the database engine in use)

            Unassigned Unassigned
            rogiervandongen Rogier van Dongen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.