Relatedlinks modul overrides Drupal.jsAC.prototype.hidePopup function from misc/autocomplete.js.
Overriden function sets input fields value to this.selected.autocompleteValue (line 227), but
this variable is defined only for relatedlinks input fields, so other autocomplate input
fields are filled with value "undefined".
Possible fix:
sites/all/modules/relatedlinks/relatedlinks.js ( replace line 227 with: )
if(this.selected.autocompleteValue){ // value for relatedlinks input fields
this.input.value = this.selected.autocompleteValue;
}
else{ // standard value from autocomplate.js for other autocomplete input fields
this.input.value = $(this.selected).data('autocompleteValue');
}
Comments
Comment #1
aendra commentedConfirming that the possible fix suggested above works to resolve the issue. Patch attached using above code.
Comment #2
aendra commentedErp, forgot to set status -- apologies, I haven't really submitted patches before.
Comment #3
aendra commentedEdit -- gah, sorry, submitted twice. Is it possible to remove issue comments?
Comment #4
furamag commentedI just tested patch from #3 on Drupal 7.16. It works fine for me.
Comment #5
berenddeboer commentedWorks.