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

Fix deleting afforms when deleting saved search #22997

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

colemanw
Copy link
Member

Overview

A typo in the code was preventing afforms from being deleted with a corresponding saved search,
and may have led to afforms being deleted incorrectly!

Before

When embedding the "Default Display" of a SavedSeach in an Afform, the afform was not being deleted along with the SavedSearch.
The code looks like it might have been deleting other afforms by accident though, as the wrong ids were being looked up to delete.

After

Works correctly, test coverage added.

A typo in the code was preventing afforms from being deleted with a corresponding saved search,
and may have led to afforms being deleted incorrectly!
@civibot
Copy link

civibot bot commented Mar 21, 2022

(Standard links)

@MegaphoneJon
Copy link
Contributor

I tested this and confirm it fixes the problem, and the change makes sense. Recommend merging.

@colemanw colemanw merged commit fabb627 into civicrm:5.48 Mar 22, 2022
@colemanw colemanw deleted the fixDeletingAfformWithSavedSearch branch March 22, 2022 15:50
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