]> code.citadel.org Git - citadel.git/blobdiff - webcit/event.c
When saving a calendar event, set the method to PUBLISH
[citadel.git] / webcit / event.c
index af9ebe893149a611db52565dbda9e4d007625fbf..9c283c6e4bc201d0880c50d6ce828e4d20bd9b84 100644 (file)
@@ -675,6 +675,9 @@ STARTOVER:  lprintf(9, "Remove unlisted attendees\n");
                lprintf(9, "Encapsulating into full VCALENDAR component\n");
                encaps = ical_encapsulate_subcomponent(icalcomponent_new_clone(vevent));
 
+               /* Set the method to PUBLISH */
+               icalcomponent_set_method(encaps, ICAL_METHOD_PUBLISH);
+
                /** If the user clicked 'Save' then save it to the server. */
                lprintf(9, "Serializing it for saving\n");
                if ( (encaps != NULL) && (strlen(bstr("save_button")) > 0) ) {