浏览代码

Fixed bug in new contact autocomplete

Stephen Ficklin 10 年之前
父节点
当前提交
f1aa5b6441
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
 }