Skip to content

Automatic discounts don't work for non-public visible membership types

bgm requested to merge github/fork/labrown/master into master

Created by: labrown

We discovered that automatic discounts were not being applied to events when the membership type involved is set for 'admin' visibility. The code in _get_candidate_discounts calls getMembershipTypes but only asks for public membership types, not all membership types. This patch adds a 'FALSE' argument so that all membership types are retrieved.

Merge request reports

Loading