[evolution-ews] Pass properly the item id when updating all the instances of a recurring meeting, and encapsulate th
- From: Or Goshen <ogosh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Pass properly the item id when updating all the instances of a recurring meeting, and encapsulate th
- Date: Wed, 17 Aug 2011 14:32:18 +0000 (UTC)
commit 33baee3b419615b9fc842c733dbddfec5b52ef2d
Author: Or Goshen <orx goshen intel com>
Date: Wed Aug 17 17:30:51 2011 +0300
Pass properly the item id when updating all the instances of a recurring meeting, and encapsulate the recurrence element correctly
src/calendar/e-cal-backend-ews.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 6bfd8bf..216e1f6 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -1714,7 +1714,7 @@ convert_vevent_component_to_updatexml(ESoapMessage *msg, gpointer user_data)
modify_data->itemid, modify_data->changekey, e_cal_rid_to_index (recid, icalcomp_old, &error));
free (recid);
} else {
- e_ews_message_start_item_change (msg, E_EWS_ITEMCHANGE_TYPE_RECURRINGMASTER,
+ e_ews_message_start_item_change (msg, E_EWS_ITEMCHANGE_TYPE_ITEM,
modify_data->itemid, modify_data->changekey, 0);
}
} else e_ews_message_start_item_change (msg, E_EWS_ITEMCHANGE_TYPE_ITEM,
@@ -1834,8 +1834,11 @@ convert_vevent_component_to_updatexml(ESoapMessage *msg, gpointer user_data)
if (prop != NULL)
value = icalproperty_get_value_as_string (prop);
- if (g_strcmp0 (value, old_value) && prop != NULL)
+ if (prop != NULL && g_strcmp0 (value, old_value)) {
+ e_ews_message_start_set_item_field (msg, "Recurrence", "calendar", "CalendarItem");
ewscal_set_reccurence(msg, prop, &dtstart);
+ e_ews_message_end_set_item_field (msg);
+ }
if (0 /* Exchange 2010 detected */ && dtstart.zone != dtend.zone) {
if (dtstart.zone) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]