Selaa lähdekoodia

make child lookup distinct

Bradford Condon 6 vuotta sitten
vanhempi
commit
39e2047c54
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      tripal_chado/includes/tripal_chado.vocab_storage.inc

+ 2 - 2
tripal_chado/includes/tripal_chado.vocab_storage.inc

@@ -230,9 +230,9 @@ function tripal_chado_vocab_get_term_children($vocabulary, $accession) {
   $cvterm = chado_expand_var($cvterm, 'field', 'cvterm.definition');
 
 
-  // Get the children
+  // Get the children.
   $sql = "
-    SELECT subject_id
+    SELECT DISTINCT subject_id
     FROM {cvterm_relationship} CVTR
     WHERE object_id = :object_id
   ";