Skip to content
Snippets Groups Projects
Commit f67c292b authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "Neue Externe Seiten zeigen auch unsichtbare VA an"

Closes #4229

Merge request studip/studip!3060
parent 3e885087
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,8 @@ class ExternPageCourses extends ExternPage ...@@ -117,7 +117,8 @@ class ExternPageCourses extends ExternPage
} }
$query .= " $query .= "
WHERE (`semester_courses`.`semester_id` IN (:semester_ids) OR ISNULL(`semester_id`)) 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->getScopesSQL($params, $this->studyareas, (bool) $this->scope_kids)
. $this->getInstitutesSQL($params) . $this->getInstitutesSQL($params)
. $this->getSemtypesSQL($params) . $this->getSemtypesSQL($params)
...@@ -304,7 +305,8 @@ class ExternPageCourses extends ExternPage ...@@ -304,7 +305,8 @@ class ExternPageCourses extends ExternPage
} }
$query .= " $query .= "
WHERE (`semester_courses`.`semester_id` IN (:semester_ids) OR ISNULL(`semester_id`)) 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->getScopesSQL($params, $this->studyareas, (bool) $this->scope_kids)
. $this->getInstitutesSQL($params) . $this->getInstitutesSQL($params)
. $this->getSemtypesSQL($params) . $this->getSemtypesSQL($params)
......
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