Details
Description
When trying to disable a Price Set, the check for events or contributions used by the set does not exclude Inactive Events. According to the error message ("The price set is used by one or more active events ..."), it should be excluding those.
It looks like CRM/Price/BAO/Set.php, getUsedBy, is missing an additional WHERE clause filter on the query. Seems as it needs something like:
(ce.is_active IS NULL OR ce.is_active = 1) AND