Skip to content
Snippets Groups Projects
Commit 9e3ad3e6 authored by Demian Katz's avatar Demian Katz
Browse files

Load empty results using search manager.

parent d4770d98
Branches
Tags
No related merge requests found
...@@ -221,7 +221,8 @@ class AbstractSearch extends AbstractBase ...@@ -221,7 +221,8 @@ class AbstractSearch extends AbstractBase
// We need to create and process an "empty results" object to // We need to create and process an "empty results" object to
// ensure that recommendation modules and templates behave // ensure that recommendation modules and templates behave
// properly when displaying the error message. // properly when displaying the error message.
$view->results = new \VuFind\Search\EmptySet\Results($params); $view->results = $this->getSearchManager()
->setSearchClassId('EmptySet')->getResults($params);
$view->results->performAndProcessSearch(); $view->results->performAndProcessSearch();
} else { } else {
// Unexpected error -- let's throw this up to the next level. // Unexpected error -- let's throw this up to the next level.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment