|
|
c9b2f7 |
diff -up evolution-ews-3.28.5/src/addressbook/e-book-backend-ews.c.contact-country-forgotten evolution-ews-3.28.5/src/addressbook/e-book-backend-ews.c
|
|
|
c9b2f7 |
--- evolution-ews-3.28.5/src/addressbook/e-book-backend-ews.c.contact-country-forgotten 2018-07-30 16:01:00.000000000 +0200
|
|
|
c9b2f7 |
+++ evolution-ews-3.28.5/src/addressbook/e-book-backend-ews.c 2018-09-27 18:31:47.485039155 +0200
|
|
|
c9b2f7 |
@@ -700,6 +700,7 @@ add_physical_address (ESoapMessage *msg,
|
|
|
c9b2f7 |
e_ews_message_write_string_parameter (msg, "Street", NULL, contact_addr->street);
|
|
|
c9b2f7 |
e_ews_message_write_string_parameter (msg, "City", NULL, contact_addr->locality);
|
|
|
c9b2f7 |
e_ews_message_write_string_parameter (msg, "State", NULL, contact_addr->region);
|
|
|
c9b2f7 |
+ e_ews_message_write_string_parameter (msg, "CountryOrRegion", NULL, contact_addr->country);
|
|
|
c9b2f7 |
e_ews_message_write_string_parameter (msg, "PostalCode", NULL, contact_addr->code);
|
|
|
c9b2f7 |
|
|
|
c9b2f7 |
e_soap_message_end_element (msg);
|
|
|
c9b2f7 |
@@ -1191,6 +1192,8 @@ compare_address (ESoapMessage *message,
|
|
|
c9b2f7 |
convert_indexed_contact_property_to_updatexml_physical_address (message, "PhysicalAddress", "City", new_address->locality, "contacts", "PhysicalAddresses", key);
|
|
|
c9b2f7 |
if (set || g_strcmp0 (new_address->region, old_address->region) != 0)
|
|
|
c9b2f7 |
convert_indexed_contact_property_to_updatexml_physical_address (message, "PhysicalAddress", "State", new_address->region, "contacts", "PhysicalAddresses", key);
|
|
|
c9b2f7 |
+ if (set || g_strcmp0 (new_address->country, old_address->country) != 0)
|
|
|
c9b2f7 |
+ convert_indexed_contact_property_to_updatexml_physical_address (message, "PhysicalAddress", "CountryOrRegion", new_address->country, "contacts", "PhysicalAddresses", key);
|
|
|
c9b2f7 |
if (set || g_strcmp0 (new_address->code, old_address->code) != 0)
|
|
|
c9b2f7 |
convert_indexed_contact_property_to_updatexml_physical_address (message, "PhysicalAddress", "PostalCode", new_address->code, "contacts", "PhysicalAddresses", key);
|
|
|
c9b2f7 |
|
|
|
c9b2f7 |
diff -up evolution-ews-3.28.5/src/server/e-ews-item.c.contact-country-forgotten evolution-ews-3.28.5/src/server/e-ews-item.c
|
|
|
c9b2f7 |
--- evolution-ews-3.28.5/src/server/e-ews-item.c.contact-country-forgotten 2018-07-30 16:01:00.000000000 +0200
|
|
|
c9b2f7 |
+++ evolution-ews-3.28.5/src/server/e-ews-item.c 2018-09-27 18:31:47.485039155 +0200
|
|
|
c9b2f7 |
@@ -686,7 +686,7 @@ ews_get_physical_address (ESoapParameter
|
|
|
c9b2f7 |
if (subparam)
|
|
|
c9b2f7 |
address->state = e_soap_parameter_get_string_value (subparam);
|
|
|
c9b2f7 |
|
|
|
c9b2f7 |
- subparam = e_soap_parameter_get_first_child_by_name (param, "Country");
|
|
|
c9b2f7 |
+ subparam = e_soap_parameter_get_first_child_by_name (param, "CountryOrRegion");
|
|
|
c9b2f7 |
if (subparam)
|
|
|
c9b2f7 |
address->country = e_soap_parameter_get_string_value (subparam);
|
|
|
c9b2f7 |
|