Skip to content

Selecting a Collection Object Type should not remove automatically created related records #5177

Description

@grantfitzsimmons

Describe the bug
The preference to automatically create a relationship is reset after selecting a Collection Object Type.

When creating a new CO, users can set whether or not they want to create a new collectionobjectattribute, determination, or preparation automatically. When changing (or setting) the COT, these are deleted.

To Reproduce
Steps to reproduce the behavior:

  1. Use a database that has these preferences set in the preferences app resource (Remote User Prefs)
CO_CREATE_COA_{collectionID}=true
CO_CREATE_DET_{collectionID}=true
CO_CREATE_PREP_{collectionID}=true

e.g.

CO_CREATE_COA_4=true
CO_CREATE_DET_4=true
CO_CREATE_PREP_4=true
  1. Select a Collection Object Type
  2. See that the records are now deleted

Expected behavior
The newly created collectionobjectattribute, determination, or preparation record should persist or another should be created.

Screenshots

Screen.Recording.2024-08-05.at.10.17.19.AM.mov

Crash Report

macOS, Arc
Git SHA: 9f37028

Specify 7 System Information - 2024-08-05T15_17_47.365Z.txt

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions