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

[Tenant Media Cleanup] Only delete if filter is not empty #2115

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

stkillen
Copy link
Contributor

@stkillen stkillen commented Sep 30, 2024

Summary

Problem
When any of the sublists returned by SplitListIntoSubLists are empty, then the filter set on Tenant Media and Tenant Media Set is empty, causing all media to be deleted.

Solution
Only delete Tenant Media and Tenant Media Set when a filter is set on the record.

Work Item(s)

Fixes AB#550939

@stkillen stkillen requested a review from a team as a code owner September 30, 2024 12:20
@github-actions github-actions bot added this to the Version 26.0 milestone Sep 30, 2024
@haoranpb haoranpb enabled auto-merge (squash) September 30, 2024 13:31
@haoranpb haoranpb merged commit fc5c4c5 into main Sep 30, 2024
28 checks passed
@haoranpb haoranpb deleted the bugs/550939 branch September 30, 2024 13:41
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.

3 participants