Created
June 11, 2015 14:15
-
-
Save pvhee/51be4014729e8f312082 to your computer and use it in GitHub Desktop.
ds_search_core_search_isbe.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/ds_search/ds_search.module b/modules/ds_search/ds_search.module | |
index 7eb1731..f58e6a0 100644 | |
--- a/modules/ds_search/ds_search.module | |
+++ b/modules/ds_search/ds_search.module | |
@@ -760,7 +760,7 @@ function ds_search_process_results($results) { | |
* Implements hook_apachesolr_search_page_alter(&$build, $search_page). | |
*/ | |
function ds_search_apachesolr_search_page_alter(&$build, $search_page) { | |
- if (!empty($build['search_results']['#results'])) { | |
+ if ($search_page['page_id'] == 'core_search' && !empty($build['search_results']['#results'])) { | |
$results = ds_search_process_results($build['search_results']['#results']); | |
$build['search_results'] = ds_search_search_page($results); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment