Regression in calculating discounts caused by change in Dec 2015
Created by: eileenmcnaughton
A recent patch
decided to break the setEntityDiscounts() functions loop as soon as it was determined there was a possible discount for which a discount code might be enterable. However, this caused breakage in the situation where more than one discount is available for an event. Only the first one is evaluated - so an autodiscount for a student may be ignored if preceded by an autodiscount for people called 'Wally'.
Am submitting reversal!