diff --git a/module/VuFind/src/VuFind/Controller/MyResearchController.php b/module/VuFind/src/VuFind/Controller/MyResearchController.php index 3e3f8dfccd86777a5ea4cec9f6c9c2d214303bb0..29f38853020f450adebf09ca829e2e9e5046ad2e 100644 --- a/module/VuFind/src/VuFind/Controller/MyResearchController.php +++ b/module/VuFind/src/VuFind/Controller/MyResearchController.php @@ -530,7 +530,8 @@ class MyResearchController extends AbstractBase // If we got this far, we just need to display the favorites: try { - $params = new \VuFind\Search\Favorites\Params(); + $sm = $this->getSearchManager()->setSearchClassId('Favorites'); + $params = $sm->getParams(); $params->setAuthManager($this->getAuthManager()); // We want to merge together GET, POST and route parameters to @@ -543,7 +544,7 @@ class MyResearchController extends AbstractBase ) ); - $results = new \VuFind\Search\Favorites\Results($params); + $results = $sm->getResults($params); $results->performAndProcessSearch(); return $this->createViewModel(array('results' => $results)); } catch (ListPermissionException $e) {