Events are visible after they were removed from EWS calendar

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
This commit is contained in:
Jan Kalab
2010-09-17 08:44:28 +00:00
parent 80ed88e5fa
commit ada7a489cf

View 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;