No what I select on admin/build/search_autocomplete, on submitting the form is always returned with all checkboxes selected.

CommentFileSizeAuthor
#3 save_options.patch1.06 KBserans
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dom.’s picture

Status: Active » Patch (to be ported)

Hi!

I don't have much time to investigate on this at the moment but it seems that correction is easy and quick:
in search_autocomplete.form.treelist.inc on line 84, change db_query_range to db_query and remove "0, 1," on the next line. In definitive, the line 84-85 should look like:

db_query('UPDATE {search_autocomplete_forms} SET weight = %d, parent_fid = %d, enabled = %d WHERE fid = %d',
    array($item['weight'], $item['parent_fid'], $item['enabled'], $item['fid']));

It works then like a charm!

Dom.’s picture

Status: Patch (to be ported) » Fixed

Should be fixed with newer versions. Thanks for reporting

serans’s picture

Version: 6.x-2.0-alpha1 » 7.x-2.0
FileSize
1.06 KB

I'm experiencing a similar problem with latest version: whatever changes I make in the suggestion list in one of the forms, the changes are copied into every other form (if I check "search users" in the User Tab form configuration, all other forms will have "seach users" checked).

Apparently, only half candidate key (sid) is passed to drupal_write_record when saving "search_autocomplete_suggestions". I attach a patch.

Dom.’s picture

Hi!
Thanks for the report and for correcting. I will try your patch and port it soon in the next release.
Miro

Dom.’s picture

Status: Fixed » Patch (to be ported)
Dom.’s picture

Status: Patch (to be ported) » Closed (fixed)

Fixed in 7.x-2.1 and 6.x-2.1