From 4f235a42c2080ace4a5865e4494792ada185098f Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Tue, 28 Mar 2017 12:01:06 +1100 Subject: [PATCH] Fix #346 - age bracket keyword in mail merge --- db_objects/person.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_objects/person.class.php b/db_objects/person.class.php index 6a3e1c28..6e7aec6b 100644 --- a/db_objects/person.class.php +++ b/db_objects/person.class.php @@ -724,7 +724,7 @@ static function getCustomMergeData($personids) function getInstancesQueryComps($params, $logic, $order) { $res = parent::getInstancesQueryComps($params, $logic, $order); - $res['select'][] = 'f.family_name, f.address_street, f.address_suburb, f.address_state, f.address_postcode, f.home_tel, c.name as congregation'; + $res['select'][] = 'f.family_name, f.address_street, f.address_suburb, f.address_state, f.address_postcode, f.home_tel, c.name as congregation, ab.label as age_bracket'; $res['from'] = '(('.$res['from'].') JOIN family f ON person.familyid = f.id) LEFT JOIN congregation c ON person.congregationid = c.id