Skip to content

Fix line transect named place creation [Fixes #1001]#1003

Merged
Blodir merged 2 commits into
developmentfrom
fix-line-transect-np-creation-1001
Jun 24, 2026
Merged

Fix line transect named place creation [Fixes #1001]#1003
Blodir merged 2 commits into
developmentfrom
fix-line-transect-np-creation-1001

Conversation

@rpulkka

@rpulkka rpulkka commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

#1001
https://1001.dev.laji.fi/project/MHL.1/form/MHL.27/places/new?birdAssociationArea=ML.1092

The documentForm.collectionID on MHL.103 is excluded from allowed named place collections on form schema, so now it won't be added as collectionID on that form.

@rpulkka
rpulkka requested a review from Blodir June 23, 2026 11:22
@rpulkka

rpulkka commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

Now the code checks whether documentForm.uiSchema.collectionID.['ui:options'].enumOptions exists. Document form collectionID is copied to np prepopulated document only if those options are not defined OR if it's defined and the ID to be copied is included.

@Blodir
Blodir merged commit 9276d6a into development Jun 24, 2026
1 check passed
@Blodir
Blodir deleted the fix-line-transect-np-creation-1001 branch June 24, 2026 08:43
@Blodir Blodir added this to the Release 90 milestone Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants