Pages and purpose
The elective-subject list is at /elective/subjects; a record opens at /elective/item/:id. It records the student's subject choice, which is used when building combined-subject rosters.
Permissions and scopes
Open Learning Management → Elective Subjects. The list uses elective-subjects. Operations inside a record use elective-subject-manage. Both modules declare the faculty (faculty) and profession (profession) scopes.
| Task | Action permission |
|---|---|
| List, create or edit records | elective-subject.index, elective-subject.store, elective-subject.update, respectively |
| Open a record with its students | elective-subject.show |
| Record or clear a choice, change a block's groups | Actions are bound to elective-subject-block.upsert |
| Synchronize blocks with the curriculum | elective-subject.sync |
Record creation validates the selected curriculum's faculty. Saving an individual student's choice checks faculty and profession. If you can open the list but cannot select a subject, check the child module's action permission and the scope for this curriculum.
Create a record and set the selection period
- Select the curriculum. Its year, degree, faculty, study format and profession supply the list columns.
- Choose a year of study within the curriculum's duration and semester 1 or 2. The curriculum must contain a subject row for that period. Each curriculum, year of study and semester combination has one record. Open the existing record if that combination is already listed.
- Organizations with the student interface enabled see a selection period in the record. Choose start and end months, then save the period. September–October 2026, for example, saves as September 1 through October 31 inclusive. Clear the range and save to remove both dates.
- After a curriculum change, synchronize outdated blocks. This adds missing blocks, removes obsolete blocks and synchronizes their groups. Check the curriculum before running the action and review the counts of added and deleted blocks in the result.
Prerequisites
Prepare the correct curriculum row, year and semester; an eligible actual or expected student; and a choice block linked to the same curriculum row used by the combined category. You also need the module and action permissions.
Before assigning combined groups
- Open the elective record for the correct curriculum and period.
- Find the student. If missing, check eligibility rules.
- Record the choice in the matching block. Where alternatives exist, choose the exact subject to be combined.
- Changing the selection sends the choice to the server immediately. Wait for the table to refresh and reopen the record to verify it.
- Return to the combined category's student page and confirm that the student appears.
- Assign the named group and instance number.
Being enrolled in a curriculum is not sufficient for an elective. A non-deleted choice in a block belonging to the same curriculum row must match the combined subject.
If the block's subject has children, select one of its direct children. For a subject without children, check the block itself. Clearing the checkbox removes the choice and clears the associated unit-number fields in the student's row.
Worked example
Anna studies “Computer Science — 2025”, year 2, semester 1. The block offers English and German. To include her in combined English classes, save English in that plan's corresponding block. Choosing German or a block from another curriculum does not qualify her for English.
For legacy records without an explicit selected subject, matching the block's own subject is accepted. This compatibility rule is not a reason to leave a new choice incomplete.
Display settings
| Setting | Effect |
|---|---|
by_name (default) |
Sorts name parts in the configured name-format order |
by_sequence |
Uses the sequence stored in the educational status |
by_order_number |
Uses the admission-basis order number |
| Name format | Select and reorder surname, first name and patronymic |
When selected name parts are absent, surname and first name are used with a fallback indicator. The displayed row number is not a student ID.
List-level settings are saved centrally. Detail-page display preferences can be overridden in the browser. Neither changes enrollment or elective choices.
Verification and troubleshooting
The saved choice should remain after reload. Combined eligibility requires both the correct period and subject. If a student appears in electives but not in combined subjects, compare the exact curriculum row, selected alternative and category groups. Do not create a duplicate student to bypass a mismatch.
Related guides
Implementation references
- ElectiveSubjects/ElectiveSubjectsDescriptor.tsx
- ElectiveSubjects/components/ElectiveItems/App/ElectiveSelectionPeriod.tsx
- ElectiveSubject/routes/api.php
- ElectiveSubjectBlock/routes/api.php
- ElectiveSubjectStudent/routes/api.php
- ElectiveSubject/Services/ElectiveSubjectService.php
- ElectiveSubject/Requests/ElectiveSubjectRequest.php
- ElectiveSubjectStudent/Requests/ElectiveSubjectStudentRequest.php