Ändern der ID von bereits existierenden Fächern eingebaut

This commit is contained in:
Matthias Grief
2025-01-07 11:34:06 +01:00
parent e01ae0161c
commit d4966ed313
2 changed files with 11 additions and 2 deletions

View File

@@ -243,6 +243,11 @@ class SubjectData
public function setId(string $id): void
{
rename(
Config::getSubjectDirectory($this->getId()),
Config::getSubjectDirectory($id)
);
$this->id = $id;
}