]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Events are visible after they were removed from EWS calendar
authorJan Kalab <pitlicek@gmail.com>
Fri, 17 Sep 2010 08:44:28 +0000 (08:44 +0000)
committerJan Kalab <pitlicek@gmail.com>
Fri, 17 Sep 2010 08:44:28 +0000 (08:44 +0000)
Because we must merge calendar even when it's empty.

(closes issue #17786)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287271 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_calendar_ews.c

index 27a4bf9f6ea57174f3f5f4c3ee57b06b1f070c18..31df353121d36d434290c784eee034bc6b8945b2 100644 (file)
@@ -202,6 +202,7 @@ static int startelm(void *userdata, int parent, const char *nspace, const char *
                ctx->pvt->items = items;
                if (items < 1) {
                        /* Stop processing XML if there are no events */
+                       ast_calendar_merge_events(ctx->pvt->owner, ctx->pvt->events);
                        return NE_XML_DECLINE;
                }
                return 1;