Browse Source

Fixed bug in new contact autocomplete

Stephen Ficklin 9 years ago
parent
commit
f1aa5b6441
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_contact/api/tripal_contact.api.inc

+ 1 - 1
tripal_contact/api/tripal_contact.api.inc

@@ -138,7 +138,7 @@ function tripal_autocomplete_contact($text) {
     if ($contact->name == 'null') {
       continue;
     }
-    $items[$contact->contact_id] = $contact->name;
+    $items[$contact->name] = $contact->name;
   }
   drupal_json_output($items);
 }