diff options
| author | Chenthill Palanisamy <pchenthill@novell.com> | 2005-07-25 04:58:30 +0000 |
|---|---|---|
| committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-07-25 04:58:30 +0000 |
| commit | 30c9cb2cd60a8c66487eac4a3313cf940e8f7105 (patch) | |
| tree | 5574d5d6aca53c684c2e761e3eb0c72d4a574be0 | |
| parent | 350e8c0ef6ec503982c913a12beea43197667533 (diff) | |
| download | evolution-data-server-30c9cb2cd60a8c66487eac4a3313cf940e8f7105.tar.gz | |
Check if the container id is present in the item id before appending it.
2005-07-23 Chenthill Palanisamy <pchenthill@novell.com>
* backends/groupwise/e-cal-backend-groupwise-utils.c:
(e_gw_connection_send_appointment): Check if the container id
is present in the item id before appending it.
| -rw-r--r-- | calendar/ChangeLog | 6 | ||||
| -rw-r--r-- | calendar/backends/groupwise/e-cal-backend-groupwise-utils.c | 14 |
2 files changed, 18 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 4a0519538..e0ebb9704 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2005-07-23 Chenthill Palanisamy <pchenthill@novell.com> + + * backends/groupwise/e-cal-backend-groupwise-utils.c: + (e_gw_connection_send_appointment): Check if the container id + is present in the item id before appending it. + 2005-07-21 Chenthill Palanisamy <pchenthill@novell.com> * backends/groupwise/e-cal-backend-groupwise.c: diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c b/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c index 6f3316494..1dc10ed13 100644 --- a/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c +++ b/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c @@ -1166,6 +1166,7 @@ e_gw_connection_send_appointment (ECalBackendGroupwise *cbgw, const char *contai EGwConnectionStatus status; icalparameter_partstat partstat; char *item_id = NULL; + const char *gw_id; gboolean all_instances = FALSE; icalproperty *icalprop; icalcomponent *icalcomp; @@ -1200,12 +1201,21 @@ e_gw_connection_send_appointment (ECalBackendGroupwise *cbgw, const char *contai icalprop = icalcomponent_get_next_property (icalcomp, ICAL_X_PROPERTY); } + gw_id = e_cal_component_get_gw_id (comp); + switch (e_cal_component_get_vtype (comp)) { + case E_CAL_COMPONENT_EVENT: - item_id = g_strconcat (e_cal_component_get_gw_id (comp), GW_EVENT_TYPE_ID, container, NULL); + if (!g_str_has_suffix (gw_id, container)) + item_id = g_strconcat (e_cal_component_get_gw_id (comp), GW_EVENT_TYPE_ID, container, NULL); + else + item_id = g_strdup (gw_id); break; case E_CAL_COMPONENT_TODO: - item_id = g_strconcat (e_cal_component_get_gw_id (comp), GW_TODO_TYPE_ID, container, NULL); + if (!g_str_has_suffix (gw_id, container)) + item_id = g_strconcat (e_cal_component_get_gw_id (comp), GW_TODO_TYPE_ID, container, NULL); + else + item_id = g_strdup (gw_id); break; default: return E_GW_CONNECTION_STATUS_INVALID_OBJECT; |
