Skip to content

Commit 87664b8

Browse files
Merge pull request #112 from shreyas-a-s/make-fields-optional
Make some form elements optional for blast database setup
2 parents 3de5ba7 + cc8413c commit 87664b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/Form/TripalBlastDatabaseForm.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function form(array $form, FormStateInterface $form_state) {
8787
'#type' => 'textfield',
8888
'#title' => $this->t('Extract Regular Expression'),
8989
'#description' => $this->t('The Regular Expression to use to extract the id from the FASTA header of the BLAST database hit.'),
90-
'#required' => TRUE,
90+
'#required' => FALSE,
9191
'#default_value' => $blast_db->getDbXrefRegExp()
9292
];
9393

@@ -97,7 +97,7 @@ public function form(array $form, FormStateInterface $form_state) {
9797
'#type' => 'textfield',
9898
'#title' => $this->t('BLAST database reference'),
9999
'#description' => $this->t('The Database records from this BLAST Database reference.'),
100-
'#required' => TRUE,
100+
'#required' => FALSE,
101101
'#default_value' => $blast_db->getDbXref()
102102
];
103103

@@ -107,7 +107,7 @@ public function form(array $form, FormStateInterface $form_state) {
107107
'#type' => 'textfield',
108108
'#title' => $this->t('BLAST database reference linkout type'),
109109
'#description' => $this->t('Type of linkout to be used for this database reference.'),
110-
'#required' => TRUE,
110+
'#required' => FALSE,
111111
'#default_value' => $blast_db->getDbXrefLinkout()
112112
];
113113

0 commit comments

Comments
 (0)