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

dev/core#1595 fix issue when using dedupe rule with custom field #16570

Closed
wants to merge 1 commit into from

Conversation

sluc23
Copy link
Contributor

@sluc23 sluc23 commented Feb 17, 2020

Overview

Fixes using dedupe rule when it includes custom field. It used to work until this strict civicrm_api3(string $entity, ..) definition was introduced in API v3 definition

Before

Execution of dedupe rule with custom field throws exception:

TypeError: Argument 1 passed to civicrm_api3() must be of the type string, null given, called in civicrm/CRM/Dedupe/BAO/Rule.php on line 62 in civicrm_api3() (line 84 of civicrm/api/api.php).

After

Execution dedupe rule with custom field works

Technical Details

Gitlab issue here
https://lab.civicrm.org/dev/core/issues/1595

Comments

This is a workaround to get this code block working, probably a deeper code refactor is needed here

@civibot
Copy link

civibot bot commented Feb 17, 2020

(Standard links)

@civibot civibot bot added the master label Feb 17, 2020
@seamuslee001
Copy link
Contributor

@sluc23 can you please test #16558 as i believe it will fix the issue as well

@eileenmcnaughton
Copy link
Contributor

Closing as we merged (& released) a fix for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants