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'); 
      }
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aendra’s picture

Confirming that the possible fix suggested above works to resolve the issue. Patch attached using above code.

aendra’s picture

Erp, forgot to set status -- apologies, I haven't really submitted patches before.

aendra’s picture

Edit -- gah, sorry, submitted twice. Is it possible to remove issue comments?

furamag’s picture

I just tested patch from #3 on Drupal 7.16. It works fine for me.

berenddeboer’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Works.