diff options
| author | Thomas Hackl <hackl@data-quest.de> | 2025-04-17 05:26:00 +0000 |
|---|---|---|
| committer | Thomas Hackl <hackl@data-quest.de> | 2025-04-17 05:26:00 +0000 |
| commit | b7c7fca1b67c69072cf0b07f2317b491999149bf (patch) | |
| tree | 32392672489462516228c6958da7152a69301aa1 /lib/models/Course.php | |
| parent | 9ab564e8625c7b7a72fa33a8f84850414b9ff1af (diff) | |
Resolve "Warteliste: Anmeldezeitraum stimmt nicht mit der Position überein"
Closes #5500
Merge request studip/studip!4131
Diffstat (limited to 'lib/models/Course.php')
| -rw-r--r-- | lib/models/Course.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/models/Course.php b/lib/models/Course.php index 97c1d70..4ab5771 100644 --- a/lib/models/Course.php +++ b/lib/models/Course.php @@ -903,6 +903,9 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe $position = 0; } } + // New entry will be added after current max position. + $position++; + $new_admission_member = new AdmissionApplication(); $new_admission_member->user_id = $user->id; $new_admission_member->position = strval($position); |
