From 52fec3c098daa2e104beff46f763184aefb40e2f Mon Sep 17 00:00:00 2001
From: =?utf8?q?Je=CC=81ro=CC=82me=20Danthinne?= <jerome@grincheux.be>
Date: Thu, 17 Mar 2011 11:07:27 +0100
Subject: [PATCH 1/1] [#975734] fixed : apachesolr_autocomplete in custom search blocks

---
 .../custom_search_blocks.module                    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/custom_search_blocks/custom_search_blocks.module b/modules/custom_search_blocks/custom_search_blocks.module
index 0e71320..c32628e 100644
--- a/modules/custom_search_blocks/custom_search_blocks.module
+++ b/modules/custom_search_blocks/custom_search_blocks.module
@@ -136,10 +136,10 @@ function custom_search_blocks_form(&$form_state, $delta) {
   if (function_exists('apachesolr_autocomplete_variable_get_widget')) {
     // support for apachesolr_autocomplete module
     if (apachesolr_autocomplete_variable_get_widget() == 'custom') {
-      $form['#attributes']['class'] = 'apachesolr-autocomplete unprocessed';
+      $form['custom_search_blocks_form_' . $delta]['#attributes']['class'] = 'apachesolr-autocomplete unprocessed';
     }
     else {
-      $form['#autocomplete_path'] = 'apachesolr_autocomplete';
+      $form['custom_search_blocks_form_' . $delta]['#autocomplete_path'] = 'apachesolr_autocomplete';
     }
   }
 
-- 
1.7.2.1

