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

Added combined handler support for classes without configured handlers.

parent 721211df
Branches
Tags
No related merge requests found
...@@ -205,7 +205,11 @@ class SearchBox extends \Zend\View\Helper\AbstractHelper ...@@ -205,7 +205,11 @@ class SearchBox extends \Zend\View\Helper\AbstractHelper
if ($type == 'VuFind') { if ($type == 'VuFind') {
$options = $this->optionsManager->get($target); $options = $this->optionsManager->get($target);
$j = 0; $j = 0;
foreach ($options->getBasicHandlers() as $searchVal => $searchDesc) { $basic = $options->getBasicHandlers();
if (empty($basic)) {
$basic = array('' => '');
}
foreach ($basic as $searchVal => $searchDesc) {
$j++; $j++;
$selected = $target == $activeSearchClass $selected = $target == $activeSearchClass
&& $activeHandler == $searchVal; && $activeHandler == $searchVal;
......
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