From 3422d6b46c6135a65a6eee7c8dca0fa9156c21bf Mon Sep 17 00:00:00 2001 From: Sarah Poger Gladstone Date: Tue, 28 May 2019 06:06:22 -0400 Subject: [PATCH] fixed gender labels --- utils/GreetingHelper.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/utils/GreetingHelper.php b/utils/GreetingHelper.php index 908b3d9..0ec5ab3 100644 --- a/utils/GreetingHelper.php +++ b/utils/GreetingHelper.php @@ -915,8 +915,10 @@ function process_singles(&$suffixes, &$prefixes, &$values, $greetings_token_name $gender_id = $contact_dao->gender_id; if ($gender_id == 1){ $gender_label = "Female"; + }else if($gender_id == 2){ + $gender_label = "Male"; }else{ - $gender_label = "Male"; + $gender_label = ""; } $cur_prefix = $prefix_label; @@ -991,8 +993,10 @@ function process_singles(&$suffixes, &$prefixes, &$values, $greetings_token_name $gender_id = $contact_dao->gender_id; if ($gender_id == 1){ $gender_label = "Female"; + }else if($gender_id == 2){ + $gender_label = "Male"; }else{ - $gender_label = "Male"; + $gender_label = ""; } $cur_prefix = $prefix_label;