From 3d7837a19c42abea7b1ae068ee7a45183a57b83a Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 27 Mar 2007 03:20:37 +0000 Subject: [PATCH] When saving a calendar event, set the method to PUBLISH --- webcit/calendar.c | 2 +- webcit/event.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/webcit/calendar.c b/webcit/calendar.c index ef3257f75..d135355c4 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -65,7 +65,7 @@ void display_task(long msgnum) { /** * \brief Process a calendar object * ...at this point it's already been deserialized by cal_process_attachment() - * \param cal teh calendar object + * \param cal the calendar object * \param recursion_level call stack depth ?????? * \param msgnum number of the mesage in our db * \param cal_partnum of the calendar object ???? diff --git a/webcit/event.c b/webcit/event.c index af9ebe893..9c283c6e4 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -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) ) { -- 2.39.2