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

Fixed broken new items RSS feed.

parent fba8528f
No related merge requests found
......@@ -408,10 +408,14 @@ class SearchController extends AbstractSearch
// Call rather than forward, so we can use custom template
$view = $this->resultsAction();
// Customize the URL helper to make sure it builds proper reserves URLs:
$url = $view->results->getUrlQuery();
$url->setDefaultParameter('range', $range);
$url->setDefaultParameter('department', $dept);
// Customize the URL helper to make sure it builds proper reserves URLs
// (check it's set first -- RSS feed will return a response model rather
// than a view model):
if (isset($view->results)) {
$url = $view->results->getUrlQuery();
$url->setDefaultParameter('range', $range);
$url->setDefaultParameter('department', $dept);
}
return $view;
}
......
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