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

Make idnumber fields longer (in interface)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Do
    • Minor
    • None
    • 2.2.9, 2.3.6, 2.4.3, 2.5, 3.4.2, 3.5, 3.6.7, 3.7.3, 3.8

    Description

      idnumber fields are (generaly) 100 characters long in database, but when looking at the screens where they're used, the fields are small, and don't allow to read easilly contained information.

      This is true for screens allowing to edit content of mdl_course, mdl_groups and mdl_groupings at least... but perhaps not limited to it.

      mysql> use information_schema ;
      mysql> SELECT TABLE_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH FROM COLUMNS WHERE TABLE_SCHEMA = 'moodle' AND COLUMN_NAME = 'idnumber';

      TABLE_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH
      mdl_cohort varchar 100
      mdl_course varchar 100
      mdl_course_categories varchar 100
      mdl_course_modules varchar 100
      mdl_grade_items varchar 255
      mdl_grade_items_history varchar 255
      mdl_groupings varchar 100
      mdl_groups varchar 100
      mdl_mnetservice_enrol_courses varchar 100
      mdl_user varchar 255

      I thinks you just have to make modifications like :

      • in course/edit_form.php :
        replace :
        $mform->addElement('text','idnumber', get_string('idnumbercourse'),'maxlength="100" size="10"');
        by :
        $mform->addElement('text','idnumber', get_string('idnumbercourse'),'maxlength="100" size="20"');
      • in group/group_form.php:
        replace :
        $mform->addElement('text','idnumber', get_string('idnumbergroup'), 'maxlength="100" size="10"');
        by :
        $mform->addElement('text','idnumber', get_string('idnumbergroup'), 'maxlength="100" size="20"');

      and so on...

      Attachments

        Issue Links

          Activity

            People

              moodle.com Moodle HQ
              fox Séverin Terrier
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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