Explorar el Código

Fixed bug in FASTA loader. Couldn't find existing record if one existed because of typo in variable name

ficklin hace 12 años
padre
commit
2b2fef61f6
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      tripal_feature/includes/fasta_loader.inc

+ 3 - 2
tripal_feature/includes/fasta_loader.inc

@@ -603,7 +603,7 @@ function tripal_feature_fasta_loader_handle_feature($name, $uname, $db_id, $acce
       return 0;
     } 
     if (count($results) == 1) {  
-      $reature = $results[0];
+      $feature = $results[0];
     } 
   }
   // check to see if this feature already exists if the match_type is 'Unique Name'
@@ -613,6 +613,7 @@ function tripal_feature_fasta_loader_handle_feature($name, $uname, $db_id, $acce
       'uniquename' => $uname,
       'type_id' => $cvterm->cvterm_id,    
     );
+
     $options = array('statement_name' => 'sel_feature_oruqty');
     $results = tripal_core_chado_select('feature', array('feature_id'), $values, $options);
     if (count($results) > 1) {
@@ -621,7 +622,7 @@ function tripal_feature_fasta_loader_handle_feature($name, $uname, $db_id, $acce
       return 0;
     } 
     if (count($results) == 1) {  
-      $reature = $results[0];
+      $feature = $results[0];
     } 
   }