Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Children can be added to one parent COG twice #6305

Open
lexiclevenger opened this issue Mar 7, 2025 · 0 comments
Open

Children can be added to one parent COG twice #6305

lexiclevenger opened this issue Mar 7, 2025 · 0 comments
Labels
2 - Forms Issues that are related to the form system

Comments

@lexiclevenger
Copy link
Collaborator

Describe the bug
A child CO or COG can be added to the same COG form more than once, resulting in an error.

To Reproduce
Steps to reproduce the behavior:

  1. Create a CollectionObjectGroup record
  2. Add a CO or COG to the Children subview
  3. Add the same CO or COG again
  4. Save the base record and see error

Expected behavior
The user should be prevented from saving the record with more than one of the same child. This could be done using a save blocker or by not actually adding the duplicate child to the subview, as seen in subviews like Collecting Event > Collection Object:

Screen.Recording.2025-03-07.at.12.05.07.PM.mov

Screenshots

Screen.Recording.2025-03-07.at.12.01.08.PM.mov

Crash Report

Specify 7 Crash Report - 2025-03-07T18_01_38.796Z.txt

Please fill out the following information manually:

@lexiclevenger lexiclevenger added the 2 - Forms Issues that are related to the form system label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - Forms Issues that are related to the form system
Projects
None yet
Development

No branches or pull requests

1 participant