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

Exception occurs when merging two people with scheduling preferences for same group #4881

Closed
1 task done
azturner opened this issue Jan 18, 2022 · 1 comment
Closed
1 task done
Labels
Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Topic: CRM Related to people or data tied to people that is not specifically one of the other topics. Topic: Rock Internals Related to internal core stuff. Type: Bug Confirmed bugs or reports that are very likely to be bugs. x-Fixed in v13.2
Milestone

Comments

@azturner
Copy link
Contributor

azturner commented Jan 18, 2022

Prerequisites

Description

An exception will occur If you try to merge two people who both belong to the same group and both have created a schedule preference for that group.

image

While the exception does prevent the merge, the bigger issue is that this leaves one of the person records without a PersonAlias record because their person alias records will now point to the other person, and this causes other problems to occur (i.e. Rock Cleanup job fails on person records and thus does not update giving ids).

Steps to Reproduce

  1. Create two person records
  2. Add both records to same group with group scheduling enabled
  3. Impersonate both people and add a scheduling preference for the group
  4. Merge both person records

Expected behavior:

Records are merged successfully

Actual behavior:

Exception occurs and Person record is left in state without an associated Person Alias record

Versions

  • Rock Version: 12.7
  • Client Culture Setting: en-US

┆Attachments: image.png

@azturner
Copy link
Contributor Author

Also, when trying to debug this issue, noticed this line of SQL which seems odd: https://github.com/SparkDevNetwork/Rock/blob/develop/database/Procedures/spCrm_PersonMerge.sql#L96

@cwomack cwomack added the Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. label Jan 21, 2022
@sparkdevnetwork-service sparkdevnetwork-service added Topic: CRM Related to people or data tied to people that is not specifically one of the other topics. Topic: Rock Internals Related to internal core stuff. Type: Bug Confirmed bugs or reports that are very likely to be bugs. labels Feb 9, 2022
MrUpsideDown added a commit that referenced this issue Feb 13, 2022
@crayzd92 crayzd92 added this to the v13 milestone Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Topic: CRM Related to people or data tied to people that is not specifically one of the other topics. Topic: Rock Internals Related to internal core stuff. Type: Bug Confirmed bugs or reports that are very likely to be bugs. x-Fixed in v13.2
Projects
None yet
Development

No branches or pull requests

5 participants