Skip to content

Commit

Permalink
Refresh form when selecting species to update collection
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldtan committed Aug 19, 2022
1 parent eb2a2c1 commit ccfc9d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/KPSEARCH.inc
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class KPSEARCH extends ChadoCustomSearch {
$form['scientific_name']['species']['#options'] = $species;
$form['scientific_name']['species']['#empty_option'] = '- Select Species -';
$form['scientific_name']['species']['#default_value'] = $species_default;
$form['scientific_name']['species']['#attributes'] = ['onchange' => 'this.form.submit();'];
unset($form['species']);
}

Expand Down

0 comments on commit ccfc9d3

Please sign in to comment.