Browse Source

Fixed minor bug in bulk loader job and feature browser template

Stephen Ficklin 11 years ago
parent
commit
a3778149f6

+ 4 - 4
tripal_bulk_loader/includes/tripal_bulk_loader.chado_node.inc

@@ -243,9 +243,9 @@ function tripal_bulk_loader_insert($node) {
 
   db_insert('tripal_bulk_loader')->fields(array(
     'nid' => $node->nid,
-    'loader_name' => $node->loader_name,
+    'loader_name' => trim($node->loader_name),
     'template_id' => $node->template_id,
-    'file' => $node->file,
+    'file' => trim($node->file),
     'file_has_header' => $node->has_header,
     'job_status' => 'Initialized',
     'keep_track_inserted' => $node->keep_track_inserted
@@ -283,9 +283,9 @@ function tripal_bulk_loader_update($node) {
   // Update tripal_bulk_loader
   db_update('tripal_bulk_loader')->fields(array(
     'nid' => $node->nid,
-    'loader_name' => $node->loader_name,
+    'loader_name' => trim($node->loader_name),
     'template_id' => $node->template_id,
-    'file' => $node->file,
+    'file' => trim($node->file),
     'file_has_header' => $node->has_header,
     'keep_track_inserted' => $node->keep_track_inserted
   ))->condition('nid',$node->nid)->execute();

+ 0 - 1
tripal_feature/theme/templates/tripal_organism_feature_browser.tpl.php

@@ -136,7 +136,6 @@ else {  ?>
     You can specify the feature types
     that should appear in this browser or remove it from the list of resources by navigating to the " . 
     l("Tripal feature settings page", "admin/tripal/chado/tripal_feature/configuration", array('attributes' => array('target' => '_blank')))  . "
-    </p>
     The feature browser will not appear to site visitors unless features are present. ",
     TRIPAL_INFO,
     array('return_html' => 1));