[evolution-mapi/gnome-3-22] Bug 775843 - Rejects to modify regular (non-recurring) appointment



commit ac80692b7d1ba06918c9079d2a483e3b7670b10f
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 7fce4fd..1f7848e 100644
--- a/src/calendar/e-cal-backend-mapi.c
+++ b/src/calendar/e-cal-backend-mapi.c
@@ -1836,11 +1836,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) {
@@ -1848,6 +1843,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]