[evolution-mapi] Bug 775843 - Rejects to modify regular (non-recurring) appointment
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Bug 775843 - Rejects to modify regular (non-recurring) appointment
- Date: Thu, 8 Dec 2016 18:31:36 +0000 (UTC)
commit a8dd8aaad79c97feca5ce86f617a5276f26f788e
Author: Milan Crha <mcrha redhat com>
Date: Thu Dec 8 19:30:49 2016 +0100
Bug 775843 - Rejects to modify regular (non-recurring) appointment
src/calendar/e-cal-backend-mapi.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-mapi.c b/src/calendar/e-cal-backend-mapi.c
index 495752a..883dab7 100644
--- a/src/calendar/e-cal-backend-mapi.c
+++ b/src/calendar/e-cal-backend-mapi.c
@@ -1835,11 +1835,6 @@ ecbm_modify_object (ECalBackend *backend, EDataCal *cal, GCancellable *cancellab
return;
}
- if (mod != E_CAL_OBJ_MOD_ALL) {
- g_propagate_error (error, EDC_ERROR_EX (OtherError, _("Support for modifying single instances
of a recurring appointment is not yet implemented. No change was made to the appointment on the server.")));
- return;
- }
-
/* check the component for validity */
icalcomp = icalparser_parse_string (calobj);
if (!icalcomp) {
@@ -1847,6 +1842,12 @@ ecbm_modify_object (ECalBackend *backend, EDataCal *cal, GCancellable *cancellab
return;
}
+ if (mod != E_CAL_OBJ_MOD_ALL && e_cal_util_component_is_instance (icalcomp)) {
+ icalcomponent_free (icalcomp);
+ g_propagate_error (error, EDC_ERROR_EX (OtherError, _("Support for modifying single instances
of a recurring appointment is not yet implemented. No change was made to the appointment on the server.")));
+ return;
+ }
+
prop = icalcomponent_get_first_property (icalcomp, ICAL_X_PROPERTY);
while (prop) {
const gchar *name = icalproperty_get_x_name (prop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]