aboutsummaryrefslogtreecommitdiff
path: root/lib/extern/ExternPageCourses.php
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2024-05-29 13:29:07 +0000
committerThomas Hackl <hackl@data-quest.de>2024-05-29 13:29:07 +0000
commitf67c292bdc904f3826ee89e4611a3d64a96467bb (patch)
treea6311300a22932d45f8f819c7192a9c47d33cba3 /lib/extern/ExternPageCourses.php
parent3e885087795dcec19f0685b30a2cc9beccff1f88 (diff)
Resolve "Neue Externe Seiten zeigen auch unsichtbare VA an"issue-4225
Closes #4229 Merge request studip/studip!3060
Diffstat (limited to 'lib/extern/ExternPageCourses.php')
-rw-r--r--lib/extern/ExternPageCourses.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/extern/ExternPageCourses.php b/lib/extern/ExternPageCourses.php
index 0e6b461..e1868c9 100644
--- a/lib/extern/ExternPageCourses.php
+++ b/lib/extern/ExternPageCourses.php
@@ -117,7 +117,8 @@ class ExternPageCourses extends ExternPage
}
$query .= "
WHERE (`semester_courses`.`semester_id` IN (:semester_ids) OR ISNULL(`semester_id`))
- AND ISNULL(`seminare`.`parent_course`) "
+ AND ISNULL(`seminare`.`parent_course`)
+ AND `seminare`.`visible` = 1 "
. $this->getScopesSQL($params, $this->studyareas, (bool) $this->scope_kids)
. $this->getInstitutesSQL($params)
. $this->getSemtypesSQL($params)
@@ -304,7 +305,8 @@ class ExternPageCourses extends ExternPage
}
$query .= "
WHERE (`semester_courses`.`semester_id` IN (:semester_ids) OR ISNULL(`semester_id`))
- AND ISNULL(`seminare`.`parent_course`) "
+ AND ISNULL(`seminare`.`parent_course`)
+ AND `seminare`.`visible` = 1 "
. $this->getScopesSQL($params, $this->studyareas, (bool) $this->scope_kids)
. $this->getInstitutesSQL($params)
. $this->getSemtypesSQL($params)