fix calculation of next student matrikelnr aka personenkennzeichen and student uid

This commit is contained in:
Harald Bamberger
2025-12-22 21:11:05 +01:00
parent 063cbcbf4f
commit c113c80862
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ class Student_model extends DB_Model
$max = 0;
if ($matrikelnrres && hasData($matrikelnrres)) {
$max = mb_substr(getData($matrikelnrres)[0]->matrikelnr, 7);
$max = mb_substr(trim(getData($matrikelnrres)[0]->matrikelnr), -3);
if (!is_numeric($max)) {
$max = (int)$max;
}