Browse Source

fix bug of organism name not used properly

Jiu9Shen 5 năm trước cách đây
mục cha
commit
32658dadc4

+ 1 - 3
tripal_jbrowse_mgmt/includes/tripal_jbrowse_mgmt_add.form.inc

@@ -260,8 +260,7 @@ function tripal_jbrowse_mgmt_add_form_submit($form, &$form_state) {
     [
       'organism_id' => $organism_id,
       'analysis_id' => $analysis_id,
-      'title' => $title,
-
+      'title' => tripal_jbrowse_mgmt_construct_organism_name($organism),
       'description' => $description,
       'created_at' => time(),
       'file' => $file,
@@ -323,7 +322,6 @@ function tripal_jbrowse_mgmt_add_form_submit($form, &$form_state) {
     }
     else {
       drupal_set_message('Failed to create instance!', 'error');
-      return;
     }
   }