parent
515fe3249f
commit
dc6b472ec9
|
@ -60,6 +60,10 @@ class SearchDashboard extends Dashboard
|
|||
foreach ($manager->getLoadedModules() as $module) {
|
||||
$moduleSearchUrls = $module->getSearchUrls();
|
||||
if (! empty($moduleSearchUrls)) {
|
||||
if ($searchString === '') {
|
||||
$pane->add(t('Ready to search'), 'search/hint');
|
||||
return;
|
||||
}
|
||||
$searchUrls = array_merge($searchUrls, $moduleSearchUrls);
|
||||
}
|
||||
}
|
||||
|
@ -72,12 +76,6 @@ class SearchDashboard extends Dashboard
|
|||
Url::fromPath($searchUrl->url, array('q' => $searchString))
|
||||
);
|
||||
}
|
||||
|
||||
if ($searchString === '' && $pane->hasDashlets()) {
|
||||
$pane->removeDashlets();
|
||||
$pane->add('Ready to search', 'search/hint');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue