microsoft / BCApps

Repository for collaboration on Microsoft Dynamics 365 Business Central applications.
https://microsoft.github.io/BCApps/
MIT License
318 stars 158 forks source link

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

Closed stkillen closed 4 weeks ago

stkillen commented 4 weeks ago

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