discount calculator gets it wrong for an event, with autodiscount based on membership
Created by: h-c-c
This screenshot shows that the value of ($discountCalculator->autoDiscounts) returns an empty array, while also displaying the whole CRM_CiviDiscount_DiscountCalculator Object with the autodiscount information as defined in the discount config pane.
The autodiscount criteria are met, and those values are being displayed in debug messages.
I'm suspecting function filterDiscountsByContact since it's the only place that seems to reference autoDiscounts in DiscountCalculator.php.