Closed (fixed)
Project:
Search Autocomplete
Version:
7.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2012 at 17:17 UTC
Updated:
22 Mar 2012 at 20:30 UTC
Reordering the suggestion types within the configuration screens (using row weights) does not have any affect on the ordering of the suggestion types within the auto-complete drop-down.
This can be fixed by editing "search_autocomplete.module" and adding "ORDER BY s.sug_weight ASC" to line 47 so that line 47 looks as below:
$result = db_query('SELECT * FROM {search_autocomplete_suggestions} s WHERE s.sug_fid = :fid AND s.sug_enabled = :sug_enabled ORDER BY s.sug_weight ASC', array(':fid' => $fid, 'sug_enabled' => 1));
This then allows the user to configure the order based on weights.
Comments
Comment #1
dom. commentedHi!
Thanks a lot for report and fix. Definitely will be added on next release !
Miro.
Comment #2
dom. commentedShould be fixed in 7.x-2.3 !
Miro.