Bladeren bron

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 jaren geleden
bovenliggende
commit
68577d8681
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  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;
       	 }