From cc8413c7591000a797c33f3676f430f4dfb78b69 Mon Sep 17 00:00:00 2001 From: Shreyas A S <137637016+shreyas-a-s@users.noreply.github.com> Date: Fri, 27 Sep 2024 08:25:24 +0530 Subject: [PATCH] Make some form elements optional for blast database setup --- src/Form/TripalBlastDatabaseForm.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Form/TripalBlastDatabaseForm.php b/src/Form/TripalBlastDatabaseForm.php index 00b45af..9a8a687 100644 --- a/src/Form/TripalBlastDatabaseForm.php +++ b/src/Form/TripalBlastDatabaseForm.php @@ -87,7 +87,7 @@ public function form(array $form, FormStateInterface $form_state) { '#type' => 'textfield', '#title' => $this->t('Extract Regular Expression'), '#description' => $this->t('The Regular Expression to use to extract the id from the FASTA header of the BLAST database hit.'), - '#required' => TRUE, + '#required' => FALSE, '#default_value' => $blast_db->getDbXrefRegExp() ]; @@ -97,7 +97,7 @@ public function form(array $form, FormStateInterface $form_state) { '#type' => 'textfield', '#title' => $this->t('BLAST database reference'), '#description' => $this->t('The Database records from this BLAST Database reference.'), - '#required' => TRUE, + '#required' => FALSE, '#default_value' => $blast_db->getDbXref() ]; @@ -107,7 +107,7 @@ public function form(array $form, FormStateInterface $form_state) { '#type' => 'textfield', '#title' => $this->t('BLAST database reference linkout type'), '#description' => $this->t('Type of linkout to be used for this database reference.'), - '#required' => TRUE, + '#required' => FALSE, '#default_value' => $blast_db->getDbXrefLinkout() ];