Closed (fixed)
Project:
Apache Solr Autocomplete
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2011 at 20:08 UTC
Updated:
19 Oct 2011 at 20:10 UTC
I get a problem with the autocomplete result in panels. It just not work to make the results visible. I found out that the resultset of the autocomplete request is empty. This code solves the problem. I just want to share and as a reminder :-) for me.
Put this in the apachesolr_autocomplete.module
/**
* Implementation of hook_form_FORM_ID_alter().
*/
function apachesolr_autocomplete_form_apachesolr_panels_search_form_alter(&$form, $form_state) {
if ($form['module']['#value'] == 'apachesolr_panels') {
$element = &$form['basic']['inline']['keys'];
apachesolr_autocomplete_do_alter($element);
}
}
Comments