Moodle
  1. Moodle
  2. MDL-20306

idnumber in mdl_course_categories

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.5, 1.9.6, 2.0
    • Fix Version/s: 2.2
    • Component/s: Course
    • Labels:
      None
    • Testing Instructions:
      Hide

      Choose
      'Site administration'
      -> 'Courses'
      -> 'Add/edit courses'

      Select the 'Edit this category' link for any of the listed categories (e.g. Miscellaneous)

      • A Category ID number field is now available, complete with appropriate tooltip help.
      • The field now also exists in the database in the course_categories table.
      • Try both adding one idnumber and later modifying it. The idnumber is properly stored and viewed on re-edition.
      • Edit another category and try to insert one already used idnumber, message about id number already taken should be shown and prevent the offending idenumber to be saved.
      • Edit another category already having one valid idnumber and try to modify it to one already used idnumber, message about id - number already taken should be shown and prevent the offending idenumber to be saved.
      Show
      Choose 'Site administration' -> 'Courses' -> 'Add/edit courses' Select the 'Edit this category' link for any of the listed categories (e.g. Miscellaneous) A Category ID number field is now available, complete with appropriate tooltip help. The field now also exists in the database in the course_categories table. Try both adding one idnumber and later modifying it. The idnumber is properly stored and viewed on re-edition. Edit another category and try to insert one already used idnumber, message about id number already taken should be shown and prevent the offending idenumber to be saved. Edit another category already having one valid idnumber and try to modify it to one already used idnumber, message about id - number already taken should be shown and prevent the offending idenumber to be saved.
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
    • Rank:
      5546

      Description

      Hi,

      Could an idnumber be added to the mdl_course_categories table? We, as a college, map our college structures to moodle as follows.

      faculty ----------------------- category level 1

      -> program------------- category level 2
      ----> subject -------- course

      We have a script system which matches subjectcode to mdl_course.idnumber. However, we have to use the name field in the program which is not at all ideal. There is a program code which we'd like to store in mdl_course_categories.idnumber.

      Could this be done, it seems a very simple change?

      Thanks.
      Gavin

        Issue Links

          Activity

            People

            • Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: