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

raise error when found multiple match #643

Open
wants to merge 2 commits into
base: 17.0
Choose a base branch
from

Conversation

emjay0921
Copy link
Contributor

Why is this change needed?

To raise an error if import match found multiple matches.

How was the change implemented?

Added a condition to check if matches found is greater that 1, then raise an error.

New unit tests

None

Unit tests executed by the author

None

How to test manually

  • Install or Upgrade spp_import_match
  • Create an import match configuration for Contact (Registry > Configuration > Import Match)
  • Check overwrite match, and Add name in Fields.
  • Try importing with at least 2 existing duplicated name in Groups or Individuals.
  • If error was raised this PR is done.

Related links

#573

Copy link

sonarcloud bot commented Oct 25, 2024

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 this pull request may close these issues.

Overwrite match only checks first data that matches the value
3 participants