Purpose
Open Educational Settings → Study Years (/study/years). This directory stores ordinal years of study: 1, 2, 3 and so on. A study year is not a calendar academic year, semester or subject. It is used for student educational status, maximum-course configuration and course selection in curricula, workload and schedules.
Create a study year
Choose Add. The form has two fields:
| Field | Rule | Example |
|---|---|---|
| Study year | Required number, no translation | 3 |
| Status | Enable/disable | Enabled |
For an ordinary four-year program, entries 1, 2, 3 and 4 are sufficient. A two-year Master's program uses the same 1 and 2, not separate duplicates. If the institution offers a five-year program, add 5 if it is not already present.
The field stores a numeric name; use positive whole ordinal numbers. Server validation checks numeric format, a maximum of 100000 and uniqueness among nondeleted entries, and the database field is integer-valued. There are no multilingual names, dates or Current marker.
List and activity
The table supports number search, status filter, sorting and export subject to permissions. Status is used by mechanisms explicitly querying active study years, such as curriculum directories. Common selectors may show all nondeleted values, so disabling status does not universally hide a study year or promote students.
This is the global number catalog: do not create a study year for every calendar year, faculty or format. It does not select a program's maximum course. For example, if a Bachelor's degree permits at most four study years for a given academic year and learning format, configure Maximum Courses separately; adding study year 5 does not increase all program durations.
Number versus record ID
The same display label, e.g. “2,” is used differently:
- student educational status and maximum course store a reference to a directory entry (its internal ID);
- academic periods store actual course numbers from the
namefield; - curriculum and lesson schedule rows use ordinal course numbers in their educational context.
Do not confuse a record ID with its number: course 2 need not have ID 2. For example, a student studying in course 2 in 2026/27 is matched to schedule course 2 and semester 1 or 2. To configure a common academic period for several courses, select numbers such as 1 and 2.
Edit, delete and restore
Editing changes the existing number or status. Do not rename a used second-year entry into the third year: linked students and other records would display the changed number, while fields storing the ordinal number itself would not necessarily change. Create new entries for additional study years; use the course-transfer workflow for student progression.
Deletion is soft. The server rejects deletion when the study year is referenced by maximum-course configuration. Also check educational records and academic periods, because this check does not cover every use of the number and ID. Preserve numbers referenced by historical records. When a duplicate exists in the recycle bin, restore the earlier record instead of recreating it.
With Moodle integration enabled, directory changes request synchronization of the study-year user field. Creating a study-year entry does not promote students or create Moodle courses automatically.
Permissions and scopes
Module study-years: study-years.index/show/store/update/destroy/deleted-items/restore. Read, create, edit, delete and restore operations have separate permissions. Directory routes declare no faculty, profession, department or subject scope. See Role permissions.
Troubleshooting
- New number cannot be saved: check existing records and the recycle bin.
- Study year missing in enrollment: check status, permissions, permissible curriculum duration and the specific form.
- Cannot delete: check maximum-course configuration and educational records.
- Student remains in the previous year: editing the directory does not promote a student. Check the student's educational record.
- Period setup error: select numbers that actually exist in both curricula and the directory.
Implementation references
- StudyYearsDescriptor.ts
- index.tsx
- registerDefaultRelations.ts
- api.php
- StudyYearRequest.php
- IndexStudyYearRequest.php
- StudyYearService.php
- StudyYearRepository.php
- StudyYear.php
- 2024_10_11_104102_create_study_years_table.php
- MaximumCourseRequest.php
- AcademicTimetableFormRequest.php
- LearningPlanController.php
- StudentCourseTransferService.php