diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-09 23:24:42 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-09 23:24:42 +0800 |
commit | c943d7699c3030d5cf4ccca4eae554f6eb79aaae (patch) | |
tree | faae2ddc8b882fee120eca5d11e1024a1ee57481 | |
parent | 144ea8dfcf055ed0fdede8cdaf112d843fc228af (diff) | |
download | gsoc2013-evolution-c943d7699c3030d5cf4ccca4eae554f6eb79aaae.tar gsoc2013-evolution-c943d7699c3030d5cf4ccca4eae554f6eb79aaae.tar.gz gsoc2013-evolution-c943d7699c3030d5cf4ccca4eae554f6eb79aaae.tar.bz2 gsoc2013-evolution-c943d7699c3030d5cf4ccca4eae554f6eb79aaae.tar.lz gsoc2013-evolution-c943d7699c3030d5cf4ccca4eae554f6eb79aaae.tar.xz gsoc2013-evolution-c943d7699c3030d5cf4ccca4eae554f6eb79aaae.tar.zst gsoc2013-evolution-c943d7699c3030d5cf4ccca4eae554f6eb79aaae.zip |
Enabled a couple more fields
2000-05-09 Christopher James Lahey <clahey@helixcode.com>
* backend/pas/pas-backend-ldap.c: Enabled a couple more fields
svn path=/trunk/; revision=2943
-rw-r--r-- | addressbook/ChangeLog | 4 | ||||
-rw-r--r-- | addressbook/backend/pas/pas-backend-ldap.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 73081fc336..de11e3afe9 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,9 @@ 2000-05-09 Christopher James Lahey <clahey@helixcode.com> + * backend/pas/pas-backend-ldap.c: Enabled a couple more fields + +2000-05-09 Christopher James Lahey <clahey@helixcode.com> + * backend/pas/pas-backend-file.c: Added a default card to all new file backends. diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c index fa04be67de..845ef31e16 100644 --- a/addressbook/backend/pas/pas-backend-ldap.c +++ b/addressbook/backend/pas/pas-backend-ldap.c @@ -591,7 +591,7 @@ construct_phone_list(ECard *card, const char *prop, char **values) NULL); for (i = 0; values[i]; i ++) { - ECardPhone *phone_entry = g_new0(ECardPhone, 1); + ECardPhone *phone_entry = e_card_phone_new(); phone_entry->number = g_strdup (values[i]); e_card_list_append(list, phone_entry); } @@ -609,8 +609,9 @@ struct prop_info { /* query prop, ldap attr, type, list construct function */ { "full_name", "cn", PROP_TYPE_NORMAL, NULL }, { "title", "title", PROP_TYPE_NORMAL, NULL }, + { "org", "o", PROP_TYPE_NORMAL, NULL }, { "email", "mail", PROP_TYPE_LIST, construct_email_list }, - { "phone", "telephoneNumber", PROP_TYPE_LIST, construct_phone_list }, + { "phone", "telephonenumber", PROP_TYPE_LIST, construct_phone_list }, }; static int num_prop_infos = sizeof(prop_info_table) / sizeof(prop_info_table[0]); |