Skip to content

Commit

Permalink
Fixing more bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
laceysanderson committed Apr 1, 2024
1 parent 29780bd commit 317e531
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Form/TripalBlastForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ public function buildForm(array $form, FormStateInterface $form_state, $query =
$config_query_upload = \Drupal::config('tripal_blast.settings')
->get('tripal_blast_config_upload.allow_query');

// We don't current support this well so disabling for now.
$is_query_upload_true = $config_query_upload ?? TRUE;
if ($is_query_upload_true) {
if (FALSE) {
// Upload a file as an alternative to enter a query sequence.
$form['#attributes']['enctype'] = 'multipart/form-data';

Expand Down Expand Up @@ -263,8 +264,9 @@ public function buildForm(array $form, FormStateInterface $form_state, $query =
'#default_value' => $defaults['SELECT_DB'],
];

// We don't currently support this well so its being disabled for now.
// Allow target upload - allow target configuration set to TRUE.
if ($config_query_upload) {
if (FALSE) {
$form['#attributes']['enctype'] = 'multipart/form-data';

//
Expand Down
1 change: 1 addition & 0 deletions src/Services/TripalBlastJobService.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ public function jobsGetJobByJobId($job_id) {
$config = \Drupal::service('tripal_blast.database_service')
->getDatabaseConfig($blastjob->target_blastdb);

$job->blastdb = new \stdClass();
$job->blastdb->db_name = $config['name'];
$job->blastdb->db_path = $config['path'];
$job->blastdb->linkout = new \stdClass();
Expand Down

0 comments on commit 317e531

Please sign in to comment.