Fix line transect named place creation [Fixes #1001]#1003
Merged
Conversation
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
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#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.