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

Prevent from removing a cojo on a primary CO #6179

Open
1 task
CarolineDenis opened this issue Jan 30, 2025 · 0 comments · May be fixed by #6181
Open
1 task

Prevent from removing a cojo on a primary CO #6179

CarolineDenis opened this issue Jan 30, 2025 · 0 comments · May be fixed by #6181
Assignees
Milestone

Comments

@CarolineDenis
Copy link
Contributor

CarolineDenis commented Jan 30, 2025

Describe the bug
If you delete the primary CO of a consolidated COG through the CO form, the COG is saved without having a primary CO child.

To Reproduce
Steps to reproduce the behavior:
A)

  • Create a CO
  • Create a new parent consolidated COG
  • Save
  • Add another child to the COG
  • Verify the CO is the primary record in the COG
  • Delete the COG parent on the CO form
  • Open the COG form, see that there is no primary record.

B)

  • Delete a CO that is the primary record of a consolidated COG from the CO form.

Expected behavior
A) Add a save blocker that prevents user from deleting parent COG on CO form if it is the primary record.
B) Add a protect blockers, prevent deleting CO if used in COJO, need to delete from COJO side

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 a pull request may close this issue.

1 participant