Skip to content

Commit

Permalink
commit fix on occurrenceId changing every form submit #1638
Browse files Browse the repository at this point in the history
  • Loading branch information
salomon-j committed Oct 10, 2024
1 parent 4ce5a04 commit e7354a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions grails-app/assets/javascripts/speciesModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ var SpeciesViewModel = function(data, options, context) {
name:self.name(),
scientificName:self.scientificName(),
commonName:self.commonName(),
listId:self.listId
listId:self.listId,
outputSpeciesId:self.outputSpeciesId()
}
};

Expand All @@ -298,9 +299,10 @@ var SpeciesViewModel = function(data, options, context) {
if (!data) data = {};

self.guid(orBlank(data.guid || data.lsid));
self.name(orBlank(data.name));
self.outputSpeciesId(orBlank(data.outputSpeciesId));
self.listId(orBlank(data.listId));
self.scientificName(orBlank(data.scientificName));
self.name(orBlank(data.name));

if (!data.commonName) {
if (data.kvpValues) {
Expand Down

0 comments on commit e7354a1

Please sign in to comment.