summaryrefslogtreecommitdiffstats
path: root/search_autocomplete.form.configure.inc
diff options
context:
space:
mode:
Diffstat (limited to 'search_autocomplete.form.configure.inc')
-rw-r--r--search_autocomplete.form.configure.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/search_autocomplete.form.configure.inc b/search_autocomplete.form.configure.inc
index 3cc588e..5253fe1 100644
--- a/search_autocomplete.form.configure.inc
+++ b/search_autocomplete.form.configure.inc
@@ -185,7 +185,10 @@ function search_autocomplete_form_configure_submit($form, &$form_state) {
->execute();
// -> update each suggestions
foreach ($form_state['input']['search_autocomplete_what'] as $key => $item) {
- drupal_write_record('search_autocomplete_suggestions', $values['search_autocomplete_what'][$key], 'sid');
+ $values['search_autocomplete_what'][$key]['sug_fid'] = $values['fid'];
+ drupal_write_record('search_autocomplete_suggestions',
+ $values['search_autocomplete_what'][$key],
+ array('sid','sug_fid') );
}
// ###
// UPDATE CHILD LIST BUT NOT THE ADVANCED OPTIONS
@@ -202,7 +205,10 @@ function search_autocomplete_form_configure_submit($form, &$form_state) {
->execute();
// -> update each suggestions
foreach ($form_state['input']['search_autocomplete_what'] as $key => $item) {
- drupal_write_record('search_autocomplete_suggestions', $values['search_autocomplete_what'][$key], 'sid');
+ $values['search_autocomplete_what'][$key]['sug_fid'] = $fid;
+ drupal_write_record('search_autocomplete_suggestions',
+ $values['search_autocomplete_what'][$key],
+ array('sid','sug_fid') );
}
}
// ###