Skip to content

Commit

Permalink
bugfix search
Browse files Browse the repository at this point in the history
  • Loading branch information
Rasmus Fuhse committed Nov 25, 2020
1 parent 11bb085 commit 32dff8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions controllers/market.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ public function search_action()
}
if (Request::get("search") || Request::get("type") || Request::get("difficulty")) {
$search = \Lernmarktplatz\SQLQuery::table("lernmarktplatz_material", "lernmarktplatz_material")
->where("draft = '0'")
->orderBy("mkdate DESC");
->where("lernmarktplatz_material.draft = '0'")
->groupBy("lernmarktplatz_material.material_id")
->orderBy("lernmarktplatz_material.mkdate DESC");
if (Request::get("type")) {
$search->where("search_categories", "category = :category", ['category' => Request::get("type")]);
}
Expand Down
2 changes: 1 addition & 1 deletion plugin.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginname=LernMarktplatz
pluginclassname=LernMarktplatz
version=4.10
version=4.11
origin=RasmusFuhse
studipMinVersion=4.0
studipMaxVersion=4.6.99

0 comments on commit 32dff8f

Please sign in to comment.