diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2026-02-18 16:56:50 +0100 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2026-02-18 16:56:50 +0100 |
| commit | db42e7dbb81076ec7de59d5c3d0d66fc7c9cb3f2 (patch) | |
| tree | f77b940d1f16c5da0f02f619b6fb94e5ec0ca46e /lib/classes/coursewizardsteps/BasicDataWizardStep.php | |
| parent | 93ab04fdc51ae681ff2d4ec9774d2b44244ea2f2 (diff) | |
reimplement SemClass and SemType as SORM classes, fixes #2785tic-2785
Diffstat (limited to 'lib/classes/coursewizardsteps/BasicDataWizardStep.php')
| -rw-r--r-- | lib/classes/coursewizardsteps/BasicDataWizardStep.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/classes/coursewizardsteps/BasicDataWizardStep.php b/lib/classes/coursewizardsteps/BasicDataWizardStep.php index 2e265c3..35ad6dc 100644 --- a/lib/classes/coursewizardsteps/BasicDataWizardStep.php +++ b/lib/classes/coursewizardsteps/BasicDataWizardStep.php @@ -50,7 +50,7 @@ class BasicDataWizardStep implements CourseWizardStep $typestruct = []; $admission_turnout_mandatory_types = []; foreach (SemType::getTypes() as $type) { - $class = $type->getClass(); + $class = $type->getSemClass(); // Creates a studygroup. if (!empty($values['studygroup'])) { // Get all studygroup types. @@ -385,8 +385,8 @@ class BasicDataWizardStep implements CourseWizardStep $errors[] = _('Sie müssen die Nutzungsbedingungen akzeptieren.'); } } - $sem_type = new SemType((int)$values['coursetype']); - $sem_class = $sem_type->getClass(); + $sem_type = $GLOBALS['SEM_TYPE'][(int)$values['coursetype']]; + $sem_class = $sem_type->getSemClass(); if ($sem_class['admission_turnout_mandatory'] && !$values['maxmembers']) { $errors[] = _('Sie müssen die maximale Teilnehmendenzahl angeben'); } |
