Browse Source

Fixed bug in feature loader that caused warning on adding new features

spficklin 13 years ago
parent
commit
6978434500
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tripal_feature/fasta_loader.php

+ 1 - 0
tripal_feature/fasta_loader.php

@@ -576,6 +576,7 @@ function tripal_feature_fasta_loader_handle_feature($name,$uname,$db_id,$accessi
       } else {
          print "Inserted feature $name ($uname)\n";
       }
+      $feature = db_fetch_object(db_query($feature_sql,$organism_id,$uname,$cvterm->cvterm_id));
    } 
    if(!$feature and (strcmp($method,'Update only')==0 or strcmp($method,'Insert and update')==0)){
       print "WARNING: failed to find feature '$name' ('$uname') while matching on " . strtolower($match_type) . ". Skipping\n";