Moodle

course shortname too long in course/request_form.php

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.9, 1.9.1, 1.9.2, 1.9.3
  • Fix Version/s: 1.9.4, 2.0
  • Component/s: Course
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE, MOODLE_20_STABLE

Description

The database field {prefix}course_request.shortname is defined as char(15). The fieldsize for shortname in course/request_form.php is set to 100 characters.
The problem comes with the modifications of the shortname lenght in the form due to the MDL-9804 but not in the database.

To solve the problem we have to change de field in the database to get the same lenght as in the course.shotname (char(100)) or undo the changes in the course/request_form.php ( Revision 1.10 Branch: MAIN)

This bug id related with MDL-9804

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

form field shortened in 1.9.x and db field changed in 2.0dev

thanks for the report

Show
Petr Škoda (skodak) added a comment - form field shortened in 1.9.x and db field changed in 2.0dev thanks for the report
Hide
Tim Hunt added a comment -

There is another bug out there about changing the database field: MDL-13746 - You may have just fixed, or half-fixed that Petr.

Show
Tim Hunt added a comment - There is another bug out there about changing the database field: MDL-13746 - You may have just fixed, or half-fixed that Petr.
Hide
Tim Hunt added a comment -

Nice work. Thanks.

Show
Tim Hunt added a comment - Nice work. Thanks.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: