Skip to content
Snippets Groups Projects
Commit e814af9c authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

prevent warning, fixes #1741

Closes #1741

Merge request studip/studip!1134
parent 56afc5f4
No related branches found
No related tags found
No related merge requests found
...@@ -396,12 +396,14 @@ class LVGroupsWizardStep implements CourseWizardStep ...@@ -396,12 +396,14 @@ class LVGroupsWizardStep implements CourseWizardStep
$category = SeminarCategories::GetByTypeId($coursetype); $category = SeminarCategories::GetByTypeId($coursetype);
if ($category->bereiche) { if ($category->bereiche) {
if (isset($values['StudyAreasLVGroupsCombinedWizardStep']) if (
&& !count($values['StudyAreasLVGroupsCombinedWizardStep']['studyareas']) isset($values['StudyAreasLVGroupsCombinedWizardStep'])
&& !count($values[__CLASS__]['lvgruppe_selection']['areas']) && empty($values['StudyAreasLVGroupsCombinedWizardStep']['studyareas'])
&& $values[__CLASS__]['step'] > $values['StudyAreasLVGroupsCombinedWizardStep']['step']) { && empty($values[__CLASS__]['lvgruppe_selection']['areas'])
$ok = false; && $values[__CLASS__]['step'] > $values['StudyAreasLVGroupsCombinedWizardStep']['step']
$errors[] = _('Die Veranstaltung muss mindestens einem Studienbereich oder einer LV-Gruppe zugeordnet sein.'); ) {
$ok = false;
$errors[] = _('Die Veranstaltung muss mindestens einem Studienbereich oder einer LV-Gruppe zugeordnet sein.');
} }
} else { } else {
// optional step if study areas step is activated and at least one area is assigned // optional step if study areas step is activated and at least one area is assigned
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment