spficklin 14 жил өмнө
parent
commit
fd815d2d32

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