Преглед на файлове

Fixing a bug for interpro results. Interpro box should not display results that do not belong to the cvterm 'analysis_interpro_output_hit'

ccheng преди 15 години
родител
ревизия
68577d8681
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      tripal_analysis_interpro/tripal_analysis_interpro.module

+ 2 - 1
tripal_analysis_interpro/tripal_analysis_interpro.module

@@ -794,8 +794,9 @@ function tripal_get_interpro_results($feature_id){
                  INNER JOIN analysisfeature AF on AF.analysisfeature_id = AFP.analysisfeature_id
                  WHERE AF.analysis_id = %d
                  AND AF.feature_id = %d
+                 AND AFP.type_id = %d
                 ";
-         $interpro_results = db_query($sql, $ana->aid, $feature_id);
+         $interpro_results = db_query($sql, $ana->aid, $feature_id, $type_id);
       	 while ($afp = db_fetch_object($interpro_results)) {
       	 	$content .= $afp->afpvalue;
       	 }