From c5b844f5f4195db8fd91f6c7740b1890268cfe53 Mon Sep 17 00:00:00 2001 From: Robert Hirsch Aspire Date: Sat, 5 Jan 2019 23:27:43 +0100 Subject: fix gender field select Signed-off-by: Robert Hirsch --- src/models/rfcProps.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/models/rfcProps.js b/src/models/rfcProps.js index 122736f2..937391f5 100644 --- a/src/models/rfcProps.js +++ b/src/models/rfcProps.js @@ -256,13 +256,10 @@ const properties = { }, gender: { readableName: t('contacts', 'Gender'), - defaultValue: { - // default to Female 🙋 - value: ['F'] - }, + force: 'select', options: [ - { id: 'F', name: t('contacts', 'Female') }, - { id: 'M', name: t('contacts', 'Male') }, + { id: 'F', name: t('contacts', 'Female'), xadd: 'X-WAB-GENDER:1' }, // Female first 🙋, TODO: make X-WAB-GENDER print in VCARD as well for MS compatibility + { id: 'M', name: t('contacts', 'Male'), xadd: 'X-WAB-GENDER:2' }, // TODO: make X-WAB-GENDER print in VCARD as well for MS compatibility { id: 'O', name: t('contacts', 'Other') } ] } -- cgit v1.2.3