Skip to content

Commit

Permalink
Merged main into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 24, 2024
2 parents 9476819 + 9e72334 commit e87f934
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 91 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/changelog.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/sync_develop_with_master.yml

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 2.0.2 - 2024-05-24
## 🐛 Bugfixes
- added check for docScores id in search results

## 🏗️ Build System
- updated workflow files



## 2.0.1 - 2024-05-16


Expand Down
8 changes: 5 additions & 3 deletions src/SearchControllerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ public function getSearchResults(string $search)
return abs($a) < abs($b) ? 1 : -1;
});
foreach ($docScores as $id => $score) {
$parts = explode("_", $id);
if ($obj = $classlist[$parts[0]]::get()->byID($parts[1])) {
$results->push($obj);
if ($id) {
$parts = explode("_", $id);
if ($obj = $classlist[$parts[0]]::get()->byID($parts[1])) {
$results->push($obj);
}
}
}
} else {
Expand Down

0 comments on commit e87f934

Please sign in to comment.