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

APIv4 - Support match in replaceAction #25770

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Mar 9, 2023

Overview

This allows the replaceAction to support non-id matching, the same way as the saveAction does.
Fixes dev/core#4168

Before

Can't update tags from SearchKit edit screen (master-only regression)

After

Fixed

Technical Details

The regression was caused by updating the EntityTag api in v4 to use the standard writeRecord which loses its special handling (which was basically an implicit match). This fixes it by making it possible to explicitly match.

This allows the replaceAction to support non-id matching, the same way as the saveAction does.
Fixes dev/core#4168
@civibot
Copy link

civibot bot commented Mar 9, 2023

(Standard links)

@civibot civibot bot added the master label Mar 9, 2023
@eileenmcnaughton
Copy link
Contributor

I'm happy with the test cover for this one

@eileenmcnaughton eileenmcnaughton merged commit 1da241c into civicrm:master Mar 9, 2023
@eileenmcnaughton eileenmcnaughton deleted the replaceWithMatch branch March 9, 2023 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants