Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[25.0] [Tenant Media Cleanup] Only delete if filter is not empty (#2123)
<!-- Thank you for submitting a Pull Request. If you're new to contributing to BCApps please read our pull request guideline below * https://github.com/microsoft/BCApps/Contributing.md --> #### Summary <!-- Provide a general summary of your changes --> **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) <!-- Add the issue number here after the #. The issue needs to be open and approved. Submitting PRs with no linked issues or unapproved issues is highly discouraged. --> Fixes [AB#550959](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/550959)
- Loading branch information