spficklin 14 years ago
parent
commit
56b165c698

+ 1 - 1
theme_tripal/tripal_feature/tripal_feature_featurelocs_as_parent.tpl.php

@@ -2,7 +2,7 @@
 
 $featurelocs_as_parent = $variables['tripal_feature']['featurelocs_as_parent'];
 $feature = $variables['node']->feature;
-dpm($featurelocs_as_parent);
+
 ?>
 <div id="tripal_feature-featurelocs_as_parent-box" class="tripal_feature-info-box tripal-info-box">
   <div class="tripal_feature-info-box-title tripal-info-box-title">Features located relative to <?php print $feature->featurename;?></div>

+ 4 - 2
tripal_feature/tripal_feature.module

@@ -1038,7 +1038,7 @@ function tripal_feature_load_featurelocs ($feature_id,$side = 'as_parent',$aggre
    $previous_db = tripal_db_set_active('chado');  // use chado database
    $flresults = db_query($sql, $feature_id);
    tripal_db_set_active($previous_db);  // now use drupal database 
-dpm($flresults);
+
    // copy the results into an array
    $i=0;
    $featurelocs = array();
@@ -1054,7 +1054,9 @@ dpm($flresults);
       // add the result to the array
       $featurelocs[$i++] = $loc;
    }
-dpm($featurelocs);  
+if($side == 'as_parent'){
+  dpm($featurelocs);  
+}
    // Add the relationship feature locs if aggregate is turned on
    if($aggregate and strcmp($side,'as_parent')==0){ 
       // get the relationships for this feature without substituting any children