Skip to content

Commit

Permalink
Bug: 14584 Fix importing vCard "LABEL" fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Mar 16, 2017
1 parent 411eab8 commit ccfb722
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions turba/config/backends.php
Expand Up @@ -288,7 +288,14 @@
'homeAddress' => array('fields' => array('homeStreet', 'homeCity',
'homeProvince',
'homePostalCode'),
'format' => "%s\n%s, %s %s"),
'format' => "%s\n%s, %s %s",
'parse' => array(
array('fields' => array('homeStreet',
'homeCity',
'homeProvince',
'homePostalCode'),
'format' => "%[^\n]\n %[^\w,], %s %s"
))),
'workStreet' => 'object_workstreet',
'workPOBox' => 'object_workpob',
'workCity' => 'object_workcity',
Expand All @@ -298,7 +305,14 @@
'workAddress' => array('fields' => array('workStreet', 'workCity',
'workProvince',
'workPostalCode'),
'format' => "%s\n%s, %s %s"),
'format' => "%s\n%s, %s %s",
'parse' => array(
array('fields' => array('workStreet',
'workCity',
'workProvince',
'workPostalCode'),
'format' => "%[^\n]\n %[^\w,], %s %s"
))),
'otherStreet' => 'object_otherstreet',
'otherPOBox' => 'object_otherpob',
'otherCity' => 'object_othercity',
Expand All @@ -308,7 +322,14 @@
'otherAddress' => array('fields' => array('otherStreet', 'otherCity',
'otherProvince',
'otherPostalCode'),
'format' => "%s\n%s, %s %s"),
'format' => "%s\n%s, %s %s",
'parse' => array(
array('fields' => array('otherStreet',
'otherCity',
'otherProvince',
'otherPostalCode'),
'format' => "%[^\n]\n %[^\w,], %s %s"
))),
'department' => 'object_department',
'manager' => 'object_manager',
'assistant' => 'object_assistant',
Expand Down

0 comments on commit ccfb722

Please sign in to comment.