Open the register
Go to Learning Management → Subject groups (/subject/groups). Each record has a translated group name, a department, one subject and dates. To record a student's individual subject choice, open Elective Subjects. To teach groups from different study plans together, open United Lessons.
Permissions and scopes
The module key is subject-groups. The list requires subject-groups.index, creation requires subject-groups.store and editing requires subject-groups.update. The list and forms use academic-departments.index and subjects.index for their lookups. Deletion requires subject-groups.destroy. Viewing deleted items requires subject-groups.deleted-items. Restoring a record requires subject-groups.restore.
The module's routes declare no faculty, profession, department or subject scope. The department field identifies the department for the record. Filtering the table by department changes the displayed rows. If a lookup is empty, check the role's access to that lookup separately.
Create a subject group
For this example, create a group called “Language preparation” in the Foreign Languages Department. First check that the department and the English subject exist in their respective registers.
| Field | Example | Entry rule |
|---|---|---|
| Name | Language preparation | Enter the translations you use. Each translation submitted requires a registered language code and a name of up to 100 characters. |
| Department | Foreign Languages | Select a department from the list. |
| Subject | English | Select a record from the subject tree. The server requires an existing subject ID even though the control allows clearing the selection. |
| Start date | 1 September 2026 | Required by the form. |
| End date | 30 June 2027 | Leave blank if the end date is unknown. |
- Open the create action, enter the names and select the department.
- Expand the subject tree or search by part of the name. The available translations determine the displayed names.
- Set the dates and save. Search for the name, reopen the row and check the department, subject and dates.
- To extend the period, change the end date on the same row. Creating another group with the same name may cause a duplicate translation error.
Find or restore a record
Search matches translated names. The list accepts department and subject filters and ranges for the start and end dates. If a row disappears after its dates change, clear the date range and search again.
Deleted groups appear in the deleted items list. If creating a group produces a deleted_data_check conflict, look up its name among the deleted records. Check the record before restoring it, then find it again in the main list. If the restore action is missing, check the role's restore permission.
Implementation references
- SubjectGroupsDescriptor.tsx and the adjacent SubjectGroupsSubjectField.tsx define the form fields and subject selector.
- permissionActionMap.json lists action permissions and dependencies.
- api.php, SubjectGroupRequest.php and the adjacent IndexSubjectGroupRequest.php define the module, validation and filters.
- SubjectGroupService.php handles saving, conflicts with deleted records and restoration.