Skip to content

Commit 065b67a

Browse files
authored
Merge pull request #1019 from WildMeOrg/1018-new-submission-encounter-state
Set initial Encounter.state same as EncounterForm.class
2 parents 487f997 + a367c2e commit 065b67a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/ecocean/Encounter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4519,6 +4519,9 @@ public static Base createFromApi(org.json.JSONObject payload, List<File> files,
45194519
enc.setDecimalLongitude(decimalLongitude);
45204520
enc.setDateFromISO8601String(dateTime);
45214521
enc.setTaxonomyFromString(txStr);
4522+
if (CommonConfiguration.getProperty("encounterState0", myShepherd.getContext()) != null) {
4523+
enc.setState(CommonConfiguration.getProperty("encounterState0", myShepherd.getContext()));
4524+
}
45224525
enc.setComments(payload.optString("comments", null));
45234526
if (user == null) {
45244527
enc.setSubmitterID("public"); // this seems to be what EncounterForm servlet does so...

0 commit comments

Comments
 (0)