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

[25.x] [Tenant Media Cleanup] Only delete if filter is not empty #2122

Merged
merged 1 commit into from
Sep 30, 2024

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#550960

@stkillen stkillen requested a review from a team as a code owner September 30, 2024 13:14
@github-actions github-actions bot added this to the Version 25.1 milestone Sep 30, 2024
@haoranpb haoranpb enabled auto-merge (squash) September 30, 2024 13:35
@haoranpb haoranpb merged commit 199e85f into releases/25.x Sep 30, 2024
27 checks passed
@haoranpb haoranpb deleted the bugs/550959 branch September 30, 2024 14:19
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