Skip to content

Cloned records misassign 'isCurrent' and 'isPrimary' #5022

@Areyes42

Description

@Areyes42

Describe the bug
When cloning an agent with multiple addresses, the new cloned agent sets the most recently added address as 'primary' instead of preserving the 'primary' address from the original agent record.

To Reproduce
Steps to reproduce the behavior:

  1. Go to or create an agent with multiple addresses
  2. Set any address as the 'Primary' address (excluding the last one)
  3. Save the changes
  4. Click on clone
  5. Observe that the 'Primary' addresses do not match

Expected behavior
The cloned agent should retain the same primary address as the original.

Screenshots

Screen.Recording.2024-06-20.at.10.26.44.AM.mov

Please, also fill out the following information manually:

  • OS: macOS 14.5
  • Browser: Chrome
  • Specify 7 Version: edge
  • Database Name: KUFish_5_16_23
  • Collection name: KU Fish Voucher
  • User Name: spfishadmin

Metadata

Metadata

Assignees

Labels

1 - BugIncorrect behavior of the product2 - FormsIssues that are related to the form system

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions