Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6.8
-
Fix Version/s: 4.6.16
-
Component/s: Extension System
-
Labels:
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
In cividiscount 3.1 CRM/CiiviDiscount/Form/Admin.php the values for age 'high' and 'low' are transposed when they're converted for storing in autodiscount, corrected function below:
function adjustAgeFields(&$fields) { if (!empty($fields['contact'])) { if (!empty($fields['contact']['age_low'])) { $fields['contact']['birth_date_low'] = '- ' . $fields['contact']['age_low']['='] . ' years'; unset($fields['contact']['age_low']); } if (!empty($fields['contact']['age_high'])) { $fields['contact']['birth_date_high'] = '- ' . $fields['contact']['age_high']['='] . ' years'; unset($fields['contact']['age_high']); } } }