-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.6, 4.1.7, 4.1.8, 4.3.2
-
MOODLE_401_STABLE, MOODLE_403_STABLE
-
MOODLE_402_STABLE, MOODLE_403_STABLE
-
MDL-80865-403 -
-
WP Sprint 2024-I1.3 (Clones)
If there are course custom fields of type "textarea" with option "Required" = "No" and they are left empty, their labels are always shown in category course list and in course/info.php page.
It could be related to https://tracker.moodle.org/browse/MDL-79365.
Steps to reproduce:
- Log in as admin
- Navigate to Courses > Course custom fields in site administration
- Add a new category (if none exists)
- Add a new Text area field
- Name: Program
- Shortname: program
- Required: No
- Add a new Short Text field
- Name: Level
- Short name: level
- Required: No
- Create a new course "Test"
- Fill in required fields
- Leave the Program textarea field blank
- Leave the Level short text field blank
- Save the course
Navigating to course/index.php page (or in course/index.php?categoryid="id of category the course Test belongs to"):
- in "Test" coursebox the label "Level" is not present (correct beahviour)
- in "Test" coursebox the label "Program" is present (incorrect beahviour)
Same behaviour in page course/info.php?id="Test course id"
- is a regression caused by
-
MDL-79365 Cannot edit courses when unique custom text fields are present
-
- Closed
-
- links to