evolution-data-server/bnc-165714-eds-delegate-multiple-events.diff

34 lines
1.2 KiB
Diff

Index: calendar/backends/groupwise/e-cal-backend-groupwise.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise.c,v
retrieving revision 1.173.2.1
diff -u -p -r1.173.2.1 e-cal-backend-groupwise.c
--- calendar/backends/groupwise/e-cal-backend-groupwise.c 6 Apr 2006 08:18:28 -0000 1.173.2.1
+++ calendar/backends/groupwise/e-cal-backend-groupwise.c 21 Apr 2006 06:23:23 -0000
@@ -1814,12 +1814,11 @@ e_cal_backend_groupwise_modify_object (E
in_offline (cbgw);
return GNOME_Evolution_Calendar_RepositoryOffline;
}
-
+
/* check the component for validity */
icalcomp = icalparser_parse_string (calobj);
if (!icalcomp)
return GNOME_Evolution_Calendar_InvalidObject;
-
comp = e_cal_component_new ();
e_cal_component_set_icalcomponent (comp, icalcomp);
e_cal_component_get_uid (comp, &uid);
@@ -1844,9 +1843,8 @@ e_cal_backend_groupwise_modify_object (E
if (mod == CALOBJ_MOD_ALL && e_cal_component_is_instance (comp)) {
recur_key = uid;
- } else {
- id = e_gw_item_get_id (item);
- }
+ }
+ id = e_gw_item_get_id (item);
status = e_gw_connection_delegate_request (priv->cnc, item, id, NULL, NULL, recur_key);