]> code.citadel.org Git - citadel.git/blobdiff - webcit/calendar.c
* Properly handle VEVENT saves (fixed nasty loopy loopy bug)
[citadel.git] / webcit / calendar.c
index 70368254a6b436672df8ac2301b18516cfdcd144..fd677b722bdec6a86a3b889bc5d230c0e2de717f 100644 (file)
@@ -573,9 +573,10 @@ void save_event(void) {
        long msgnum = 0L;
 
        msgnum = atol(bstr("msgnum"));
+
        if (msgnum > 0L) {
                display_using_handler(msgnum, "text/calendar",
-                               ICAL_VTODO_COMPONENT,
+                               ICAL_VEVENT_COMPONENT,
                                save_individual_event);
        }
        else {