Skip to content
Snippets Groups Projects
Commit 82e9be57 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

prevent warning, fixes #1741

Closes #1741

Merge request studip/studip!1134
parent 9c835518
No related branches found
No related tags found
No related merge requests found
......@@ -396,12 +396,14 @@ class LVGroupsWizardStep implements CourseWizardStep
$category = SeminarCategories::GetByTypeId($coursetype);
if ($category->bereiche) {
if (isset($values['StudyAreasLVGroupsCombinedWizardStep'])
&& !count($values['StudyAreasLVGroupsCombinedWizardStep']['studyareas'])
&& !count($values[__CLASS__]['lvgruppe_selection']['areas'])
&& $values[__CLASS__]['step'] > $values['StudyAreasLVGroupsCombinedWizardStep']['step']) {
$ok = false;
$errors[] = _('Die Veranstaltung muss mindestens einem Studienbereich oder einer LV-Gruppe zugeordnet sein.');
if (
isset($values['StudyAreasLVGroupsCombinedWizardStep'])
&& empty($values['StudyAreasLVGroupsCombinedWizardStep']['studyareas'])
&& empty($values[__CLASS__]['lvgruppe_selection']['areas'])
&& $values[__CLASS__]['step'] > $values['StudyAreasLVGroupsCombinedWizardStep']['step']
) {
$ok = false;
$errors[] = _('Die Veranstaltung muss mindestens einem Studienbereich oder einer LV-Gruppe zugeordnet sein.');
}
} else {
// 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